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

📄 employeeadd_jsp.java

📁 本系统完成了企业内部网信息管理系统的设计
💻 JAVA
字号:
package org.apache.jsp;

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

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

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(1);
    _jspx_dependants.add("/WEB-INF/struts-html.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_form_method_action;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _jspx_tagPool_html_form_method_action = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_html_form_method_action.release();
  }

  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=GB2312");
      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\n");
      out.write("\r\n");
      out.write("\t\r\n");

	Vector v = (Vector)session.getAttribute(Constants.DEP_LIST_KEY);
	Dep dep = null;

      out.write("\r\n");
      out.write(" \r\n");
      out.write("<html>\r\n");
      out.write("\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<LINK href=\"images/style.css\" rel=stylesheet>\r\n");
      out.write("<title></title>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\" bgcolor=\"#FFCC66\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"84%\" bgcolor=\"#FFFFFF\">\r\n");
      out.write("<DIV align=left><B><FONT color=#ff9900>个人信息 </FONT></B></DIV>\r\n");
      //  html:form
      org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = (org.apache.struts.taglib.html.FormTag) _jspx_tagPool_html_form_method_action.get(org.apache.struts.taglib.html.FormTag.class);
      _jspx_th_html_form_0.setPageContext(_jspx_page_context);
      _jspx_th_html_form_0.setParent(null);
      _jspx_th_html_form_0.setAction("empAdd.do");
      _jspx_th_html_form_0.setMethod("post");
      int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
      if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
          out.write("<TABLE cellSpacing=0 borderColorDark=#cccccc cellPadding=0 width=540 \r\n");
          out.write("borderColorLight=#ffffff border=1>\r\n");
          out.write("  <TBODY>\r\n");
          out.write("  <TR>\r\n");
          out.write("    <TD style=\"text-align: left\">\r\n");
          out.write("      <DIV align=center><FONT color=#ff9900><B><FONT \r\n");
          out.write("      size=2>姓&nbsp;&nbsp;名*</FONT></B></FONT></DIV></TD>\r\n");
          out.write("    <TD style=\"text-align: left\"><FONT size=2><INPUT name=name size=\"20\"> </FONT></TD>\r\n");
          out.write("    <TD style=\"text-align: left\">\r\n");
          out.write("      <DIV align=center><FONT color=#ff9900 size=2><B>学历 </B></FONT></DIV></TD>\r\n");
          out.write("    <TD style=\"text-align: left\"><FONT size=2>\r\n");
          out.write("    <INPUT maxLength=18 name=degree size=\"20\"> </FONT></TD></TR>\r\n");
          out.write("  <TR>\r\n");
          out.write("    <TD style=\"text-align: left\">\r\n");
          out.write("      <DIV align=center><B><FONT color=#ff9900 \r\n");
          out.write("      size=2>性&nbsp;&nbsp;别*</FONT></B></DIV></TD>\r\n");
          out.write("    <TD style=\"text-align: left\"><FONT size=2><INPUT type=radio CHECKED value=男 name=sex> 男 <INPUT \r\n");
          out.write("      type=radio value=女 name=sex> 女 </FONT></TD>\r\n");
          out.write("    <TD style=\"text-align: left\">\r\n");
          out.write("      <DIV align=center><B><FONT color=#ff9900 size=2>出生日期* </FONT></B></DIV></TD>\r\n");
          out.write("    <TD style=\"text-align: left\"><FONT size=2>\r\n");
          out.write("    <INPUT title=必须按照 yyyy/mm/dd 格式输入 \r\n");
          out.write("       value=yyyy/mm/dd name=birthday size=\"20\"> </FONT></TD></TR>\r\n");
          out.write("  <TR>\r\n");
          out.write("    <TD style=\"text-align: left\" valign=\"top\">\r\n");
          out.write("      <DIV align=center><font color=\"#FF9900\"><b>联系方式</b></font></DIV></TD>\r\n");
          out.write("    <TD style=\"text-align: left\"><FONT size=2><INPUT name=tel size=\"20\"> </FONT></TD>\r\n");
          out.write("    </TR>\r\n");
          out.write("  </TBODY></TABLE>\r\n");
          out.write("<P> </P>\r\n");
          out.write("<DIV align=left><b><font color=\"#ff9900\">部门</font></b></DIV>\r\n");
          out.write("<TABLE cellSpacing=0 borderColorDark=#cccccc cellPadding=0 width=526 \r\n");
          out.write("borderColorLight=#ffffff border=1 height=\"248\">\r\n");
          out.write("  <TBODY>\r\n");
          out.write("  <TR>\r\n");
          out.write("    <TD width=87 style=\"text-align: left\" height=\"19\">\r\n");
          out.write("      <DIV align=center><font size=\"2\" color=\"#FF9900\"><b>所在部门</b></font></DIV></TD>\r\n");
          out.write("    <TD width=447 style=\"text-align: left\" height=\"19\"><B><FONT size=2><SELECT name=depId> \r\n");
          out.write(" \r\n");
          out.write("   ");
if(v != null ){

       for(int i = 0;i < v.size();i++)
       {  
       		dep = (Dep)v.get(i);
       
          out.write("\r\n");
          out.write("    <option value=");
          out.print(dep.getId());
          out.write('>');
          out.write(' ');
          out.print(dep.getName());
          out.write("</option>\r\n");
          out.write("    \r\n");
          out.write("\r\n");
          out.write("          ");

          }
       }
      
          out.write("\r\n");
          out.write("    \r\n");
          out.write("    </SELECT> \r\n");
          out.write("      </FONT></B></TD></TR>\r\n");
          out.write("  <TR>\r\n");
          out.write("    <TD width=87 style=\"text-align: left\" height=\"20\">\r\n");
          out.write("      <DIV align=center><font size=\"2\" color=\"#FF9900\"><b>职务</b></font></DIV></TD>\r\n");
          out.write("    <TD width=447 style=\"text-align: left\" height=\"20\"><B><FONT size=2>\r\n");
          out.write("    <SELECT name=duty> \r\n");
          out.write("    <option>员工</option>\r\n");
          out.write("    <option>总经理</option>\r\n");
          out.write("    <option>主管</option>\r\n");
          out.write("    </SELECT></FONT></B></TD></TR>\r\n");
          out.write("  <TR>\r\n");
          out.write("    <TD colSpan=2 style=\"text-align: left\" width=\"536\" height=\"13\"></TD></TR>\r\n");
          out.write("  <TR>\r\n");
          out.write("    <TD width=87 style=\"text-align: left\" height=\"169\">\r\n");
          out.write("      <P align=center><FONT color=#ff9900><B><FONT \r\n");
          out.write("      size=2>工作经历</FONT></B></FONT></P>\r\n");
          out.write("      <P align=center> </P></TD>\r\n");
          out.write("    <TD width=447 style=\"text-align: left\" height=\"169\">\r\n");
          out.write("      <p align=\"center\">\r\n");
          out.write("      <textarea rows=\"10\" name=\"exp\" cols=\"61\"></textarea></p>\r\n");
          out.write("    <p> </TD></TR>\r\n");
          out.write("  </TBODY></TABLE>\r\n");
          out.write("<DIV align=left> </DIV>\r\n");
          out.write("<P align=center><FONT size=2><INPUT type=submit value=提交> <INPUT type=reset value=重填> </FONT></P>\r\n");
          out.write("    <p> </td>\r\n");
          out.write("  </tr>\r\n");
          out.write("</table>\r\n");
          int evalDoAfterBody = _jspx_th_html_form_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_html_form_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_html_form_method_action.reuse(_jspx_th_html_form_0);
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("\r\n");
      out.write("</html>");
    } 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 + -