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

📄 hospital_005fup_jsp.java

📁 这是java编写宠物医院项目
💻 JAVA
字号:
package org.apache.jsp.hospital;

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

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

  private static java.util.Vector _jspx_dependants;

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

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

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

  public void _jspDestroy() {
    _jspx_tagPool_c_forEach_var_items.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=UTF-8");
      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("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta  http-equiv=\"content-type\" content=\"text/html; chstset=utf-8\" />\r\n");
      out.write("<title>\r\n");
      out.write("hospital_up</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".STYLE1 {color: #FF0000}\r\n");
      out.write(".STYLE2 {color: #0066FF}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<script type=\"text/JavaScript\">\r\n");
      out.write("<!--\r\n");
      out.write("function MM_findObj(n, d) { //v4.01\r\n");
      out.write("  var p,i,x;  if(!d) d=document; if((p=n.indexOf(\"?\"))>0&&parent.frames.length) {\r\n");
      out.write("    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}\r\n");
      out.write("  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];\r\n");
      out.write("  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);\r\n");
      out.write("  if(!x && d.getElementById) x=d.getElementById(n); return x;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function MM_validateForm() { //v4.0\r\n");
      out.write("  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;\r\n");
      out.write("  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);\r\n");
      out.write("    if (val) { nm=val.name; if ((val=val.value)!=\"\") {\r\n");
      out.write("      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');\r\n");
      out.write("        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\\n';\r\n");
      out.write("      } else if (test!='R') { num = parseFloat(val);\r\n");
      out.write("        if (isNaN(val)) errors+='- '+nm+' must contain a number.\\n';\r\n");
      out.write("        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');\r\n");
      out.write("          min=test.substring(8,p); max=test.substring(p+1);\r\n");
      out.write("          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\\n';\r\n");
      out.write("    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\\n'; }\r\n");
      out.write("  } if (errors) alert('请认真填写!!!');\r\n");
      out.write("  document.MM_returnValue = (errors == '');\r\n");
      out.write("}\r\n");
      out.write("//-->\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("<body bgcolor=\"#ffffff\">\r\n");
      out.write("<h2 align=\"center\">病例修改</h2>\r\n");
      out.write(" <form action=\"../controller?action=hospital&method=up_name\" method=\"post\" name=\"form1\" >\r\n");
      out.write("<table width=\"403\" border=\"0\" align=\"center\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"117\" height=\"32\">请输入宠物名:</td>\r\n");
      out.write("    <td width=\"183\"><label >\r\n");
      out.write("      <input name=\"name\" type=\"text\" id=\"name\">\r\n");
      out.write("    </label></td>\r\n");
      out.write("    <td width=\"89\"><input type=\"submit\" name=\"Submit\" value=\"提交\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("</form>\r\n");
      out.write("<p >&nbsp;</p>\r\n");
      out.write("<table width=\"851\" border=\"0\" align=\"center\" >\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"126\" height=\"24\">编号</td>\r\n");
      out.write("    <td width=\"127\">宠物</td>\r\n");
      out.write("    <td width=\"127\">兽医</td>\r\n");
      out.write("    <td width=\"137\">病因</td>\r\n");
      out.write("    <td width=\"119\">登记时间</td>\r\n");
      out.write("    <td width=\"189\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  ");
      if (_jspx_meth_c_forEach_0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("</table>\r\n");
      out.write("<br/><br/><br/><br/>\r\n");
      out.write("<a href=\"hospital.jsp\">返回</a>\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);
    }
  }

  private boolean _jspx_meth_c_forEach_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:forEach
    org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
    _jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
    _jspx_th_c_forEach_0.setParent(null);
    _jspx_th_c_forEach_0.setVar("hosp");
    _jspx_th_c_forEach_0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.hosp}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
    int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
    try {
      int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
      if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n");
          out.write("  <tr>\r\n");
          out.write("    <form name=\"form2\" method=\"post\" action=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${pageContext.request.contextPath}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("/controller?action=hospital&method=hospup\">\r\n");
          out.write("    <td bgcolor=\"#666666\"> <span class=\"STYLE2\">\r\n");
          out.write("      <input name=\"id\" type=\"text\" id=\"id\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${hosp.id}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("\" size=\"17\" readonly=\"true\" >\r\n");
          out.write("    </span></td>\r\n");
          out.write("    <td><input name=\"pid\" type=\"text\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${hosp.pid}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("\" size=\"17\" ></td>\r\n");
          out.write("    <td><span class=\"STYLE3 STYLE1\">\r\n");
          out.write("      <input name=\"vid\" type=\"text\" id=\"vid\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${hosp.vid}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("\" size=\"17\">\r\n");
          out.write("    </span></td>\r\n");
          out.write("    <td><span class=\"STYLE3 STYLE1\">\r\n");
          out.write("      <input name=\"hospital\" type=\"text\" id=\"hospital\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${hosp.hospital}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("\" size=\"17\">\r\n");
          out.write("    </span></td>\r\n");
          out.write("    <td>");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${hosp.time}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write("</td>\r\n");
          out.write("    <td><input name=\"Submit2\" type=\"submit\"  value=\"提交\"> </td>\r\n");
          out.write("    </form>\r\n");
          out.write("  </tr>\r\n");
          out.write("  ");
          int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return true;
    } catch (Throwable _jspx_exception) {
      while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_c_forEach_0.doCatch(_jspx_exception);
    } finally {
      _jspx_th_c_forEach_0.doFinally();
      _jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0);
    }
    return false;
  }
}

⌨️ 快捷键说明

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