Calendar_remove_success.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.calendar.value.*"%>
- <%@ page import="com.vnex.intranet.calendar.proxy.*"%>
- <%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="java.util.*" %>
- <%@ page import="java.sql.*" %>
- <jsp:useBean id="calendarProxy" class="com.vnex.intranet.calendar.proxy.CalendarProxyBean" scope="application" />
- <%
- String[] str = null;
- int[] calendarIds = null;
- String root = ConfigParaLoader.getParameter("rootUrl");
- if(request.getParameter("calendarIds")!=null && !request.getParameter("calendarIds").equals(""))
- str = request.getParameterValues("calendarIds");
- calendarIds = new int[str.length];
- for(int i=0; i<str.length; i++)
- {
- calendarIds[i] = Integer.parseInt( str[i] );
- }
- for(int i=0; i<calendarIds.length; i++)
- {
- CalendarValueBean bean = calendarProxy.getCalendarDetail(calendarIds[i]);
- Collection coll = bean.getAttachments();
- if(coll != null && coll.size() != 0)
- {
- Iterator it = coll.iterator();
- while( it.hasNext() )
- {
- String url = (String)it.next();
- java.io.File f = new java.io.File(root+url);
- f.delete();
- }
- }
- }
- calendarProxy.removeCalendar(calendarIds);
- response.sendRedirect("/mainctrl/calendar/getCalendarList");
- %>