Directory_Remove_Success.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.commoninfo.directory.value.*"%>
- <%@ page import="com.vnex.intranet.commoninfo.directory.proxy.*"%>
- <%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="java.util.*" %>
- <%@ page import="java.sql.*" %>
- <%@ page import="java.io.*" %>
- <jsp:useBean id="directoryProxy" class="com.vnex.intranet.commoninfo.directory.proxy.DirectoryProxyBean" scope="application" />
- <%
- String[] str = null;
- int[] directoryIds = null;
- if(request.getParameter("directoryIds")!=null && !request.getParameter("directoryIds").equals(""))
- str = request.getParameterValues("directoryIds");
- directoryIds = new int[str.length];
- for(int i=0; i<str.length; i++)
- {
- directoryIds[i] = Integer.parseInt( str[i] );
- }
- for(int i=0; i<directoryIds.length; i++)
- {
- DirectoryValueBean bean = directoryProxy.getDirectoryDetail(directoryIds[i]);
- String root = ConfigParaLoader.getParameter("rootUrl") + bean.getAttachmentUrl();
- SubPathGenerater.deleteFile( root );
- }
- directoryProxy.removeDirectory(directoryIds);
- response.sendRedirect("/mainctrl/commoninfo/directory/getDirectoryList");
- %>