modify_archive_success.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page import="java.util.GregorianCalendar" %>
  2. <%@ page import="java.util.Calendar" %>
  3. <%@ page import="java.sql.Timestamp" %>
  4. <%@ page import="com.vnex.intranet.pub.BaseJdbcDAO" %>
  5. <%@ page import="com.vnex.intranet.util.TimeStamp" %>
  6. <jsp:useBean id="ar" scope="request" class="com.vnex.intranet.archives.value.ArchiveValueBean" />
  7. <jsp:useBean id="archiveProxy" scope="application" class="com.vnex.intranet.archives.proxy.ArchiveProxyBean" />
  8. <jsp:setProperty name="ar" property="*" />
  9. <%
  10.     String archiveId = request.getParameter("archiveId");
  11.     ar.setArchiveId((new Integer(archiveId)).intValue());    
  12.     if (request.getParameter("createTime").length() != 0)
  13.     {
  14.     String createDate = request.getParameter("createTime") + " 00:00:00";
  15.     Timestamp time = TimeStamp.toTimestamp(createDate);
  16.     ar.setCreateDate(TimeStamp.convertTimestampToCalendar(time));                                  
  17. }
  18.     System.out.println("" + ar.getFileSourceId());                 
  19.     archiveProxy.modifyArchive(ar);
  20. %>
  21. <jsp:forward page="/mainctrl/archive/archiveDetail">
  22. <jsp:param name="archiveId" value="<%=archiveId%>" />
  23. </jsp:forward>