PreSignAction.java
上传用户:jishiqi_cj
上传日期:2022-08-08
资源大小:24765k
文件大小:1k
源码类别:

Java编程

开发平台:

Java

  1. package StudyBbs;
  2. import javax.servlet.http.HttpServletRequest;
  3. import javax.servlet.http.HttpServletResponse;
  4. import javax.servlet.http.HttpSession;
  5. import org.apache.struts.action.Action;
  6. import org.apache.struts.action.ActionForm;
  7. import org.apache.struts.action.ActionForward;
  8. import org.apache.struts.action.ActionMapping;
  9. import org.apache.struts.action.DynaActionForm;
  10. import javax.servlet.ServletContext;
  11. import javax.sql.DataSource;
  12. import java.sql.Connection;
  13. import org.apache.struts.action.ActionMessage;
  14. import org.apache.struts.action.ActionMessages;
  15. public final class PreSignAction extends Action{  
  16. public ActionForward execute(
  17. ActionMapping mapping,
  18. ActionForm form,
  19. HttpServletRequest request,  
  20. HttpServletResponse response) throws Exception {
  21.   saveToken(request);  //避免重复提交
  22.         return (mapping.findForward("toRegist"));
  23. }
  24. }