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

📄 adduser_jsp.java

📁 这是基于jsp的任务管理系统
💻 JAVA
字号:
package org.apache.jsp.systemadmin;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;

public final class adduser_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=GB18030");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\r');
      out.write('\n');

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html>\r\n");
      out.write("  <head>\r\n");
      out.write("    <base href=\"");
      out.print(basePath);
      out.write("\">   \r\n");
      out.write("\r\n");
      out.write("  </head>\r\n");
      out.write("  \r\n");
      out.write("  <body>\r\n");
      out.write("     \t <form name=\"userinof\" action=\"UserController?action=add\" method=\"post\">\r\n");
      out.write("   \t<table width=\"100%\" align=\"center\">\r\n");
      out.write("  \r\n");
      out.write("   \t\t<tr>\r\n");
      out.write("   \t\t\t<td>用户名称</td>\r\n");
      out.write("   \t\t\t<td><input type=\"text\" value=\"\" name=\"user_name\" maxlength=16></td>\r\n");
      out.write("   \t\t</tr>\r\n");
      out.write("   \t\t<tr>\r\n");
      out.write("   \t\t\t<td>用户密码</td>\r\n");
      out.write("   \t\t\t<td><input type=\"password\" value=\"\" name=\"user_pass\" maxlength=16></td>\r\n");
      out.write("   \t\t</tr>\r\n");
      out.write("   \t\t\r\n");
      out.write("   \t\t<tr>\r\n");
      out.write("   \t\t\t<td>用户权限</td>\r\n");
      out.write("   \t\t\t<td>\r\n");
      out.write("   \t\t\t\t<select name=user_power>   \r\n");
      out.write("   \t\t\t\t   <option value=\"0\">请选择用户权限</option>   \t\t  \t\t\t\t\t\r\n");
      out.write("   \t\t\t\t\t<option value=\"1\">系统管理员</option>   \t\t\t\t\t\r\n");
      out.write("   \t\t\t\t\t<option value=\"2\">设备管理员</option>\r\n");
      out.write("   \t\t\t\t\t<option value=\"3\">普通用户</option>   \t\t\t\t\t\r\n");
      out.write("   \t\t\t\t</select>\r\n");
      out.write("   \t\t\t</td>   \t\t\t\r\n");
      out.write("   \t\t</tr>   \t\t\r\n");
      out.write("   \t\t<tr>\r\n");
      out.write("   \t\t\t<td>用户角色</td>\r\n");
      out.write("   \t\t\t<td>\r\n");
      out.write("   \t\t\t\t<select name=\"user_charpter\"> \r\n");
      out.write("   \t\t\t\t\t<option value=\"0\">请选择用户角色</option>   \t\t    \t\t\t\t\t\r\n");
      out.write("   \t\t\t\t\t<option value=\"1\">总经理</option>   \t\t\t\t\t\r\n");
      out.write("   \t\t\t\t\t<option value=\"2\">部门经理</option>\r\n");
      out.write("   \t\t\t\t\t<option value=\"3\">普通用户</option>   \t\t\t\t\t\r\n");
      out.write("   \t\t\t\t</select></td>\r\n");
      out.write("   \t\t</tr> \t\t\r\n");
      out.write("   \t\t\r\n");
      out.write("   \t\t\r\n");
      out.write("   \t\t<tr>\r\n");
      out.write("   \t\t\t<td>年龄</td>\r\n");
      out.write("   \t\t\t<td><input type=\"text\" value=\"\" name=\"user_age\"></td>\r\n");
      out.write("   \t\t</tr>\r\n");
      out.write("   \t\t<tr>\r\n");
      out.write("   \t\t\t<td>用户所属部门</td>\r\n");
      out.write("   \t\t\t<td><input type=\"text\" value=\"\" name=\"user_deptid\"></td>\r\n");
      out.write("   \t\t</tr>\r\n");
      out.write("   \t\t<tr>\r\n");
      out.write("   \t\t\t<td>联系电话</td>\r\n");
      out.write("   \t\t\t<td><input type=\"text\" value=\"\" name=\"user_tel\"></td>\r\n");
      out.write("   \t\t</tr>\r\n");
      out.write("   \t\t<tr>\r\n");
      out.write("   \t\t\t<td>Email</td>\r\n");
      out.write("   \t\t\t<td><input type=\"text\" value=\"\" name=\"user_email\"></td>\r\n");
      out.write("   \t\t</tr> \r\n");
      out.write(" \r\n");
      out.write("   \t\t<tr>\r\n");
      out.write("   \t\t\t<td align=right><input type=\"submit\" value=\"添加\">&nbsp;&nbsp;</td>\r\n");
      out.write("   \t\t\t<td align=left>&nbsp;&nbsp;<input type=\"reset\" value=\"重置\"></td>\r\n");
      out.write("   \t\t</tr>\r\n");
      out.write("   \t</table>\r\n");
      out.write("   \t</form>\r\n");
      out.write("  </body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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