Publication_Remove_Success.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.commoninfo.publication.value.*"%>
- <%@ page import="com.vnex.intranet.commoninfo.publication.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="publicationProxy" class="com.vnex.intranet.commoninfo.publication.proxy.PublicationProxyBean" scope="application" />
- <%
- String[] str = null;
- int[] publicationIds = null;
- if(request.getParameter("publicationIds")!=null && !request.getParameter("publicationIds").equals(""))
- str = request.getParameterValues("publicationIds");
- publicationIds = new int[str.length];
- for(int i=0; i<str.length; i++)
- {
- publicationIds[i] = Integer.parseInt( str[i] );
- }
- for(int i=0; i<publicationIds.length; i++)
- {
- PublicationValueBean bean = publicationProxy.getPublicationDetail(publicationIds[i]);
- String root = ConfigParaLoader.getParameter("rootUrl") + bean.getAttachmentUrl();
- SubPathGenerater.deleteFile( root );
- }
- publicationProxy.removePublication(publicationIds);
- response.sendRedirect("/mainctrl/commoninfo/publication/getPublicationList");
- %>