⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _users_0handle__jsp.java

📁 彩铃小项目的原代码 下载
💻 JAVA
字号:
/*
 * JSP generated by Resin 2.1.17 (built Thu Dec  8 15:09:04 PST 2005)
 */

package _manager;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import hibernate.UsersAction;

public class _users_0handle__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, null, true, 8192, true);
    javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    javax.servlet.http.HttpSession session = pageContext.getSession();
    javax.servlet.ServletContext application = pageContext.getServletContext();
    response.setContentType("text/html; charset=gb2312");
    request.setCharacterEncoding("GB2312");
    try {
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      UsersAction opHandle;
      opHandle = (UsersAction) pageContext.getAttribute("opHandle");
      if (opHandle == null) {
        opHandle = new UsersAction();
        pageContext.setAttribute("opHandle", opHandle);
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      {
        java.lang.String _jspParam;
        _jspParam = request.getParameter("method");
        if (_jspParam != null && ! _jspParam.equals(""))
          opHandle.setMethod(_jspParam);
        _jspParam = request.getParameter("id");
        if (_jspParam != null && ! _jspParam.equals(""))
          opHandle.setId(_jspParam);
        _jspParam = request.getParameter("userid");
        if (_jspParam != null && ! _jspParam.equals(""))
          opHandle.setUserid(_jspParam);
        _jspParam = request.getParameter("username");
        if (_jspParam != null && ! _jspParam.equals(""))
          opHandle.setUsername(_jspParam);
        _jspParam = request.getParameter("userpower");
        if (_jspParam != null && ! _jspParam.equals(""))
          opHandle.setUserpower(java.lang.Integer.valueOf(_jspParam));
        _jspParam = request.getParameter("userpwd");
        if (_jspParam != null && ! _jspParam.equals(""))
          opHandle.setUserpwd(_jspParam);
        _jspParam = request.getParameter("userpwd1");
        if (_jspParam != null && ! _jspParam.equals(""))
          opHandle.setUserpwd1(_jspParam);
        _jspParam = request.getParameter("validateSerial");
        if (_jspParam != null && ! _jspParam.equals(""))
          opHandle.setValidateSerial(_jspParam);
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      
//\u7a0b\u5e8f\u521d\u59cb\u5316
boolean isOpeOK = false;
String op_type = opHandle.getMethod();

if("_DELETE".equals(op_type)){
	//\u64cd\u4f5c \u5220\u9664 ---------------------------------
	isOpeOK = opHandle.delete();

	if(isOpeOK){
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      
	}else{
		
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      
	}
}else if("_ADD".equals(op_type)){
	//\u64cd\u4f5c \u5220\u9664 ---------------------------------
	isOpeOK = opHandle.insert();

	if(isOpeOK){
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      
	}else{
		
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      
	}
}else if("_UPDATE".equals(op_type)){
	//\u64cd\u4f5c \u5220\u9664 ---------------------------------
	isOpeOK = opHandle.update();

	if(isOpeOK){
		session.setAttribute("USER_NAME_ALL",opHandle.getUsername());
		
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      
	}else{
		
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      
	}
}else{
	
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      
}
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }
  }

  private com.caucho.java.LineMap _caucho_line_map;
  private java.util.ArrayList _caucho_depends = new java.util.ArrayList();

  public boolean _caucho_isModified()
  {
    if (_caucho_isDead)
      return true;
    if (com.caucho.util.CauchoSystem.getVersionId() != -2089842218)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.vfs.Depend depend;
      depend = (com.caucho.vfs.Depend) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public com.caucho.java.LineMap _caucho_getLineMap()
  {
    return _caucho_line_map;
  }

  public void destroy()
  {
      _caucho_isDead = true;
      super.destroy();
  }

  public void init(com.caucho.java.LineMap lineMap,
                   com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);
    mergePath.addMergePath(resinHome);
    mergePath.addClassPath(getClass().getClassLoader());
    _caucho_line_map = new com.caucho.java.LineMap("_users_0handle__jsp.java", "/manager/users_handle.jsp");
    _caucho_line_map.add(2, 1);
    _caucho_line_map.add(1, 28);
    _caucho_line_map.add(4, 37);
    _caucho_line_map.add(5, 65);
    _caucho_line_map.add(19, 76);
    _caucho_line_map.add(26, 80);
    _caucho_line_map.add(37, 88);
    _caucho_line_map.add(44, 92);
    _caucho_line_map.add(57, 102);
    _caucho_line_map.add(64, 106);
    _caucho_line_map.add(72, 111);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/e:/www/manager/users_handle.jsp"), 1158287760000L, 1679L);
    _caucho_depends.add(depend);
  }

  protected void _caucho_clearDepends()
  {
    _caucho_depends.clear();
  }

  private static byte []_jsp_string1;
  private static byte []_jsp_string3;
  private static byte []_jsp_string4;
  private static byte []_jsp_string7;
  private static byte []_jsp_string2;
  private static byte []_jsp_string5;
  private static byte []_jsp_string0;
  private static byte []_jsp_string6;
  static {
    try {
      _jsp_string1 = "\r\n		<script>\r\n			alert(\"\u7cfb\u7edf\u7528\u6237\u5220\u9664\u6210\u529f\uff0c\u8bf7\u8fd4\u56de\uff01\");\r\n			location=\"users.jsp\";\r\n		</script>	\r\n		".getBytes("GB2312");
      _jsp_string3 = "\r\n		<script>\r\n			if(confirm(\"\u7cfb\u7edf\u7528\u6237\u6dfb\u52a0\u6210\u529f\uff0c\u662f\u5426\u8fd4\u56de\u7ee7\u7eed\u6dfb\u52a0\uff1f\uff01\")) location=\"users_add.jsp\"\r\n			else location=\"users.jsp\";\r\n		</script>	\r\n		".getBytes("GB2312");
      _jsp_string4 = "\r\n		<script>\r\n			if(confirm(\"\u6b64\u7528\u6237\u5df2\u7ecf\u5b58\u5728\uff0c\u7cfb\u7edf\u7528\u6237\u6dfb\u52a0\u5931\u8d25\uff0c\u662f\u5426\u8fd4\u56de\u91cd\u8bd5\uff1f\uff01\")) history.back();\r\n			else location=\"users.jsp\";\r\n		</script>	\r\n		".getBytes("GB2312");
      _jsp_string7 = "\r\n	<script>\r\n		alert(\"\u5bf9\u4e0d\u8d77\uff0c\u9519\u8bef\u7684\u8bf7\u6c42\uff0c\u8bf7\u8fd4\u56de\uff01\uff01\");\r\n		location = \"index.jsp\";\r\n	</script>	\r\n	".getBytes("GB2312");
      _jsp_string2 = "\r\n		<script>\r\n			alert(\"\u6570\u636e\u4f20\u8f93\u5931\u8bef\uff0c\u7cfb\u7edf\u7528\u6237\u5220\u9664\u5931\u8d25\uff0c\u8bf7\u8fd4\u56de\u91cd\u8bd5\uff01\");\r\n			location=\"users.jsp\";\r\n		</script>	\r\n		".getBytes("GB2312");
      _jsp_string5 = "\r\n		<script>\r\n			alert(\"\u7cfb\u7edf\u7528\u6237\u4fe1\u606f\u4fee\u6539\u6210\u529f\uff0c\u8bf7\u8fd4\u56de\uff01\");\r\n			location=\"users.jsp\";\r\n		</script>	\r\n		".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
      _jsp_string6 = "\r\n		<script>\r\n			alert(\"\u6570\u636e\u4f20\u8f93\u5931\u8bef\uff0c\u7cfb\u7edf\u7528\u6237\u4fe1\u606f\u4fee\u6539\u5931\u8d25\uff0c\u8bf7\u8fd4\u56de\u91cd\u8bd5\uff1f\uff01\"));\r\n			location=\"users_amend.jsp\";\r\n		</script>	\r\n		".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -