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

📄 updateeducate_jsp.java

📁 应用STRUTS+HIBERNATE框架编写的学生信息管理系统!!功能齐全完整
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.List;
import java.util.Iterator;
import entity.Educate;
import tool.*;

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

  private static java.util.Vector _jspx_dependants;

  public java.util.List 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=GBK");
      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\r\n\r\n\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<html>\r\n<head>\r\n<title>人力资源管理系统</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\r\n<link href=\"css/css.css\" rel=\"stylesheet\" type=\"text/css\">\r\n</head>\r\n<script src=\"Js/js.js\"></script>\r\n<body>\r\n<table width=\"100%\"  border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" bordercolorlight=\"#CCCCCC\" bordercolor=\"#FFFFFF\" bordercolordark=\"#FFFFFF\" >\r\n  <tr>\r\n    <td height=\"22\" colspan=\"4\" align=\"left\" ><strong class=\"text13\">\r\n\t");

	String educate=null;
	try{
		educate=request.getParameter("educate").toString();
	}catch(Exception e){
		educate="0";
	}
	if("1".equals(educate)){
		out.print("培训总结");
	  }else{
		out.print("修改培训计划");
	  }
	
      out.write("\r\n\t</strong></td>\r\n  </tr>\r\n  ");

  Educate e=(Educate)request.getAttribute("educate");
  if(e!=null){
  
      out.write("\r\n  <form name=\"educateForm\" method=\"post\" action=\"modifyeducate.do?action=updateeducate\" onSubmit=\"return educateValidate();\">\r\n  <input type=\"hidden\" name=\"id\" value=\"");
      out.print(e.getId());
      out.write("\">\r\n  <input type=\"hidden\" name=\"educate\" value=\"");
      out.print(educate);
      out.write("\">\r\n  <tr align=\"center\">\r\n    <td width=\"30%\" height=\"22\" >培训名称:</td>\r\n    <td width=\"29%\" height=\"22\" align=\"left\" ><input name=\"name\" type=\"text\" class=\"input\" value=\"");
      out.print(e.getName());
      out.write('"');
      out.write(' ');
      out.print(("1".equals(educate))?"disabled":"");
      out.write("></td>\r\n    <td width=\"18%\" height=\"22\" >培训目的:</td>\r\n    <td width=\"23%\" height=\"22\" align=\"left\" ><input name=\"purpose\" type=\"text\" class=\"input\" value=\"");
      out.print(e.getPurpose());
      out.write('"');
      out.write(' ');
      out.print(("1".equals(educate))?"disabled":"");
      out.write("></td>\r\n  </tr>\r\n  <tr align=\"center\">\r\n    <td width=\"30%\" height=\"22\" >培训开始时间:</td>\r\n    <td height=\"22\" align=\"left\" ><input name=\"begintime\" type=\"text\" class=\"input\" ");
      out.print(("1".equals(educate))?"disabled":"");
      out.write(" value=\"");
      out.print(StringUtil.notNull(DateUtil.parseToString(e.getBegintime(),DateUtil.yyyyMMdd)));
      out.write("\"></td>\r\n    <td height=\"22\" >培训结束时间:</td>\r\n    <td height=\"22\" align=\"left\" ><input name=\"endtime\" type=\"text\" class=\"input\" ");
      out.print(("1".equals(educate))?"disabled":"");
      out.write(" value=\"");
      out.print(StringUtil.notNull(DateUtil.parseToString(e.getEndtime(),DateUtil.yyyyMMdd)));
      out.write("\"></td>\r\n  </tr>\r\n  <tr align=\"center\">\r\n    <td width=\"30%\" height=\"22\" >讲师:</td>\r\n    <td height=\"22\" align=\"left\" ><input name=\"teacher\" type=\"text\" class=\"input\" ");
      out.print("1".equals(educate)?"disabled":"");
      out.write(" value=\"");
      out.print(e.getTeacher());
      out.write("\"></td>\r\n    <td height=\"22\" >培训人员:</td>\r\n    <td height=\"22\" align=\"left\" ><input name=\"student\" type=\"text\" class=\"input\" ");
      out.print("1".equals(educate)?"disabled":"");
      out.write(" value=\"");
      out.print(e.getStudent());
      out.write("\"></td>\r\n  </tr>\r\n  <tr>\r\n    <td width=\"30%\" height=\"22\" align=\"center\" >培训材料:</td>\r\n    <td height=\"22\" colspan=\"3\" align=\"left\" ><textarea name=\"datum\" cols=\"50\" rows=\"6\" class=\"input\" ");
      out.print("1".equals(educate)?"disabled":"");
      out.write('>');
      out.print(e.getDatum());
      out.write("</textarea></td>\r\n  </tr>\r\n  ");
if("1".equals(educate)){
      out.write("\r\n  <tr align=\"center\">\r\n    <td width=\"30%\" height=\"22\" >培训效果:</td>\r\n    <td height=\"22\" colspan=\"3\" align=\"left\" ><input name=\"effect\" type=\"text\"  class=\"input\" value=\"");
      out.print(StringUtil.notNull(e.getEffect()));
      out.write("\" size=\"50\"></td>\r\n  </tr>\r\n  <tr align=\"center\">\r\n    <td width=\"30%\" height=\"22\" >培训总结:</td>\r\n    <td height=\"22\" colspan=\"3\" align=\"left\" ><textarea name=\"summarize\" cols=\"50\" rows=\"6\"  class=\"input\">");
      out.print(StringUtil.notNull(e.getSummarize()));
      out.write("</textarea></td>\r\n  </tr>\r\n  ");
}
      out.write("\r\n  <tr>\r\n    <td height=\"22\" colspan=\"4\" align=\"center\" ><input name=\"Submit\" type=\"submit\" class=\"button\" value=\"提交\">\r\n      &nbsp;&nbsp;\r\n      <input name=\"Submit2\" type=\"reset\" class=\"button\" value=\"重置\"></td>\r\n  </tr>\r\n  </form>\r\n  ");
}else{ 
      out.write("\r\n  <tr>\r\n    <td height=\"22\" colspan=\"4\" align=\"center\" >该信息不存在!!!</td>\r\n  </tr>\r\n  ");
}
      out.write("\r\n</table>\r\n</body>\r\n</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 + -