upload_process.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page import="java.util.*" %>
- <%@ page import="com.vnex.intranet.util.SubPathGenerater" %>
- <%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader"%>
- <%@ page import="com.vnex.intranet.upload.*"%>
- <%@ page import="com.vnex.intranet.archives.value.ArchiveAttachmentValueBean" %>
- <jsp:useBean id="mySmartUpload" scope="request" class="com.vnex.intranet.upload.SmartUpload" />
- <%
- String root = ConfigParaLoader.getParameter("rootUrl");
- if( request.getParameter("type") !=null && request.getParameter("type").equals("1")) //上传文件
- {
- String attachURL = ConfigParaLoader.getParameter("documentAttachmentUrl");
- attachURL += SubPathGenerater.getSeperator() + SubPathGenerater.getSubPath( root + SubPathGenerater.getSeperator() + attachURL);
- mySmartUpload.initialize( pageContext );
- mySmartUpload.setTotalMaxFileSize( ConfigParaLoader.getParameterByInt("attachmentSize"));
- mySmartUpload.upload();
- mySmartUpload.save( root + SubPathGenerater.getSeperator() + attachURL );
- }
- %>
- <jsp:forward page="/vnex/intranet/archives/upload_file.jsp" />