上传控件的问题

douglas0914 9个月前 309浏览
					      <span class="input-group-addon"><s:message code="fileName"/></span>
					      <f:text class="form-control" id="fileName1" name="fileName1" value="${bean.fileName1}" maxlength="100"/>
					      <span class="input-group-addon"><s:message code="fileUrl"/></span>
					      <f:text class="form-control" id="file1" name="file1" value="${bean.file1}" maxlength="300"/>
			
					        <span class="input-group-btn">
					      	<span id="fileSwfButton"></span>
					      	<button class="btn btn-default" type="button" class="swfbutton"><s:message code="upload"/></button>
				      		<button class="btn btn-default" type="button" id="fileSwfCancel" onclick="fileSwfUpload.cancelQueue();" disabled><s:message code="cancel"/></button>
					     	</span>
					    </div>
					    <div id="fileSwfProgress"></div>
				      <script type="text/javascript">
				      $(function() {
				        Cms.f7.uploads("file1","fileName1",{
				          settings: {"title": "<s:message code="webFile.chooseUploads"/>"}
				        });
				      });
				      </script>
				      <script type="text/javascript">
				      var fileSwfUpload = Cms.swfUploadFile("file",{
				        jsessionid: "<%=request.getSession().getId()%>",
				    	  file_size_limit: "${GLOBAL.upload.fileLimit}",
				    	  file_types: "${GLOBAL.upload.fileTypes}"
				      });
				      </script>
        		</div>
						
						
						参照例子做了一个上传控件,但选好上传文件无法在Text里显示文件名和路径,求解答
编辑

1 个回答

我来回答

请先登录再回答问题