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

📄 petowner_jsp.java

📁 一个基于JAVA的BS结构的宠物诊所管理系统.是当年在学校时写的,大家指点一下.
💻 JAVA
字号:
package org.apache.jsp;

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

public final class PetOwner_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(2);
    _jspx_dependants.add("/WEB-INF/tags/head.tag");
    _jspx_dependants.add("/WEB-INF/tags/cauda.tag");
  }

  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");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<HTML>\r\n");
      out.write("<HEAD>\r\n");
      out.write("<TITLE>宠物所有者信息</TITLE>\r\n");
      out.write("<META http-equiv=Content-Type content=\"text/html; charset=gbk\">\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("  <!--\r\n");
      out.write("    .STYLE9 {\r\n");
      out.write("    color: #33CC66;\r\n");
      out.write("    font-weight: bold;\r\n");
      out.write("    }\r\n");
      out.write("    .STYLE18 {color: #FF0000; font-size: 16px; }\r\n");
      out.write("  -->\r\n");
      out.write("</style>\r\n");
      out.write("\r\n");
      out.write("<script language=\"javascript\" type=\"\" src=\"datasrc/javascript/util.js\"></script>\r\n");
      out.write("<script type=\"\" language=\"JavaScript\">\r\n");
      out.write("     //removeSpace()\r\n");
      out.write("      function addPetOwnerAction(){\r\n");
      out.write("      \t\r\n");
      out.write("      \tvar\toname=removeSpace(document.addPetOwnerForm.ownerName.value);\r\n");
      out.write("      \r\n");
      out.write("      \tif(oname==''){\r\n");
      out.write("      \t\talert(\"请正确填写宠物所有者姓名\");\r\n");
      out.write("      \t\tdocument.addPetOwnerForm.ownerName.select();\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("      \t\t\r\n");
      out.write("      \t\tdocument.addPetOwnerForm.ownerName.value=oname;\r\n");
      out.write("      \t\r\n");
      out.write("      \tif(document.addPetOwnerForm.telephone.value==''){\r\n");
      out.write("      \t\t\talert(\"请填写电话号码\");\r\n");
      out.write("      \t\t\tdocument.addPetOwnerForm.telephone.focus();\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("      \t\t\r\n");
      out.write("      \t\tif(!isTelephone(document.addPetOwnerForm.telephone)){\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("      \t\t\r\n");
      out.write("      \t\tif(removeSpace(document.addPetOwnerForm.address.value)==''){\r\n");
      out.write("      \t\t\tdocument.addPetOwnerForm.address.select();\r\n");
      out.write("      \t\t\talert(\"请正确填写地址\");\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("      \t\t\r\n");
      out.write("      \t\tif(document.addPetOwnerForm.address.value.length>100){\r\n");
      out.write("      \t\t\tdocument.addPetOwnerForm.address.select();\r\n");
      out.write("      \t\t\talert(\"填写的地址不应超过100个字!\");\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("      \t\t//addPetOwnerForm.ownerName telephone address\r\n");
      out.write("      \t\treturn true;\r\n");
      out.write("      }\r\n");
      out.write("</script>\r\n");
      out.write("</HEAD>\r\n");
      out.write("<LINK href=\"datasrc/style.css\" type=text/css rel=stylesheet>\r\n");
      out.write("<body>\r\n");
      if (_jspx_meth_mytag_head_0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("<!-- 在这里开始加入动态内容 -->\r\n");
      out.write("<TABLE cellSpacing=0 cellPadding=0 width=776 align=center background=datasrc/centerbg.gif border=0>\r\n");
      out.write("  <TBODY>\r\n");
      out.write("    <TR>\r\n");
      out.write("      <TD vAlign=top width=188 background=datasrc/09.gif height=134>\r\n");
      out.write("        <table width=\"100%\" height=\"227\" align=\"center\" cellpadding=\"3\" cellspacing=\"3\">\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>&nbsp;</td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>\r\n");
      out.write("              <a href=\"PetOwner.jsp\"><font class=\"STYLE9\" size=\"4\">注册新宠物所有者</font></a></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>\r\n");
      out.write("              <a href=\"SearchPetOwner.jsp\"><font class=\"STYLE9\" size=\"4\">查询宠物所有者</font></a></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>&nbsp;</td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td>&nbsp;</td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table>\r\n");
      out.write("      </TD>\r\n");
      out.write("      <TD vAlign=top width=593>\r\n");
      out.write("        <TABLE height=277 cellSpacing=2 cellPadding=0 width=\"100%\" border=0>\r\n");
      out.write("          <TBODY>\r\n");
      out.write("            <TR vAlign=top>\r\n");
      out.write("              <TD width=\"588\">\r\n");
      out.write("              <form name=\"addPetOwnerForm\" method=\"post\" action=\"addPetOwner.do\" onSubmit=\"return addPetOwnerAction()\">\r\n");
      out.write("                <table width=\"95%\" align=\"center\">\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td width=\"20%\" height=\"30\">&nbsp;</td>\r\n");
      out.write("                    <td width=\"80%\" height=\"30\" align=\"left\">&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td width=\"20%\">&nbsp;</td>\r\n");
      out.write("                    <td width=\"80%\" align=\"left\">\r\n");
      out.write("                      <h3 class=\"STYLE4\">注册宠物所有者信息</h3>                    </td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td align=\"right\">                      姓\r\n");
      out.write("                      &nbsp;\r\n");
      out.write("                      名:</td>\r\n");
      out.write("                    <td>\r\n");
      out.write("                      <label>\r\n");
      out.write("                        <input type=\"text\" name=\"ownerName\">\r\n");
      out.write("                        <span class=\"STYLE18\">*</span>                      </label>                    </td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td align=\"right\">                      性\r\n");
      out.write("                      &nbsp;\r\n");
      out.write("                      别:</td>\r\n");
      out.write("                    <td>\r\n");
      out.write("                      <label>\r\n");
      out.write("                        <span class=\"STYLE3\">男</span>\r\n");
      out.write("                        <input type=\"radio\" checked=\"checked\" name=\"sex\" value=\"0\">\r\n");
      out.write("                      </label>\r\n");
      out.write("                      <label>\r\n");
      out.write("                        <span class=\"STYLE2\">女</span>\r\n");
      out.write("                        <input type=\"radio\" name=\"sex\" value=\"1\">\r\n");
      out.write("                        <span class=\"STYLE18\">*</span>                      </label>                    </td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td align=\"right\">                      电\r\n");
      out.write("                      &nbsp;\r\n");
      out.write("                      话:</td>\r\n");
      out.write("                    <td>\r\n");
      out.write("                      <label>\r\n");
      out.write("                        <input name=\"telephone\" type=\"text\">\r\n");
      out.write("                      </label>\r\n");
      out.write("                      <span class=\"STYLE18\">*(格式:0000-0000000或13000000000)</span>                    </td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td align=\"right\">                      地\r\n");
      out.write("                      &nbsp;\r\n");
      out.write("                      址:</td>\r\n");
      out.write("                    <td>\r\n");
      out.write("                      <label>\r\n");
      out.write("                        <input type=\"text\" name=\"address\">\r\n");
      out.write("                      </label>\r\n");
      out.write("                      <span class=\"STYLE18\">*</span>                    </td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td>&nbsp;</td>\r\n");
      out.write("                    <td>\r\n");
      out.write("                      <label>\r\n");
      out.write("                        <input type=\"submit\" value=\"提交\">\r\n");
      out.write("                      </label>\r\n");
      out.write("                      <label>\r\n");
      out.write("                        <input type=\"reset\" value=\"重置\">\r\n");
      out.write("                      </label>                    </td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td>&nbsp;</td>\r\n");
      out.write("                    <td>&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td>&nbsp;</td>\r\n");
      out.write("                    <td><font color=\"#FF0000\" size=\"4\"><b>");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${FromAddPetOwnerActionMessage}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("</b></font></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                </table>\r\n");
      out.write("              </form>\r\n");
      out.write("              </TD>\r\n");
      out.write("            </TR>\r\n");
      out.write("\r\n");
      out.write("        </TABLE>\r\n");
      out.write("      </TD>\r\n");
      out.write("    </TR>\r\n");
      out.write("  </TBODY>\r\n");
      out.write("</TABLE>\r\n");
      out.write("<!-- 在这里结束加入动态内容 -->\r\n");
      if (_jspx_meth_mytag_cauda_0(_jspx_page_context))
        return;
      out.write("\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_mytag_head_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  mytag:head
    org.apache.jsp.tag.web.head_tag _jspx_th_mytag_head_0 = new org.apache.jsp.tag.web.head_tag();
    _jspx_th_mytag_head_0.setJspContext(_jspx_page_context);
    _jspx_th_mytag_head_0.doTag();
    return false;
  }

  private boolean _jspx_meth_mytag_cauda_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  mytag:cauda
    org.apache.jsp.tag.web.cauda_tag _jspx_th_mytag_cauda_0 = new org.apache.jsp.tag.web.cauda_tag();
    _jspx_th_mytag_cauda_0.setJspContext(_jspx_page_context);
    _jspx_th_mytag_cauda_0.doTag();
    return false;
  }
}

⌨️ 快捷键说明

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