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

📄 newpetowner_jsp.java

📁 java java的 简单 开发文档 java初学
💻 JAVA
字号:
package org.apache.jsp;

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

public final class newpetowner_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("/headerpet.jsp");
    _jspx_dependants.add("/footer.jsp");
  }

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

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

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

  public void _jspDestroy() {
    _jspx_tagPool_c_out_value_nobody.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');
      out.write('\n');
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head><br>\r\n");
      out.write("<title>Pet Clinic Application</title>\r\n");
      out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"fund.css\">\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n");
      out.write("<!-- header-->\r\n");
      out.write("<tr>\r\n");
      out.write("\t<td class=\"tddata\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("\t<td class=\"tddata\" colspan=\"2\" align=\"right\">\r\n");
      out.write("\t\t<a class=\"tablelink\" href=\"petsearch.jsp\">HOME</a>&nbsp;&nbsp;&nbsp;\r\n");
      out.write("\t\t<a class=\"tablelink\" href=\"/petclinic/EmpServlet?param=logout\">LOGOUT</a>&nbsp;&nbsp;&nbsp;\r\n");
      out.write("\t</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("\t<td class=\"tddata\" colspan=\"2\" align=\"center\"><h1>Pet Clinic Application</h1></td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("\t<td class=\"tddata\" colspan=\"2\" align=\"left\">\r\n");
      out.write("\t\t<a class=\"tablelink\" href=\"vetsearch.jsp\">VETS</a>&nbsp;&nbsp;&nbsp;\r\n");
      out.write("\t\t<a >PETS</a>&nbsp;&nbsp;&nbsp;\r\n");
      out.write("\t</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("\t<td class=\"thd\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("\t<td class=\"thd\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<!-- header-->\r\n");
      out.write("\r\n");
      out.write("<Script type=\"\" language=\"JavaScript\">\r\n");
      out.write("function faction()\r\n");
      out.write("{\r\n");
      out.write("\tdocument.frm.action=\"petsearch.jsp\";\r\n");
      out.write("\tdocument.frm.submit();\r\n");
      out.write("}\r\n");
      out.write("function chkNull() {\r\n");
      out.write("\r\n");
      out.write("\tif (document.frm.ownerName.value.length==0) {\r\n");
      out.write("\t\talert(\"Owner name must be Entered\");\r\n");
      out.write("\t\tdocument.frm.ownerName.focus();\r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t}\r\n");
      out.write("\tif (document.frm.address.value.length==0) {\r\n");
      out.write("\t\talert(\"Address must be Entered\");\r\n");
      out.write("\t\tdocument.frm.address.focus();\r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t}\r\n");
      out.write("\tif (document.frm.city.value.length==0) {\r\n");
      out.write("\t\talert(\"City must be Entered\");\r\n");
      out.write("\t\tdocument.frm.city.focus();\r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t}\r\n");
      out.write("\tif (document.frm.telNo.value.length==0) {\r\n");
      out.write("\t\talert(\"Please Enter the Telephone Number\");\r\n");
      out.write("\t\tdocument.frm.telNo.focus();\r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t}\r\n");
      out.write("\treturn true;\r\n");
      out.write("}\r\n");
      out.write("</Script>\r\n");
      out.write("<!-- main body -->\r\n");

request.setCharacterEncoding("gb2312");

      out.write("\r\n");
      out.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n");
      out.write("<tr>\r\n");
      out.write("<td class=\"thd\" width=\"70%\" align=\"center\">\r\n");
      out.write("\t<form name=\"frm\" action=\"/petclinic/PetOwnerServlet\" method=\"POST\" Onsubmit=\"return chkNull()\">\r\n");
      out.write("\t<table border=\"0\" width=\"60%\">\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"tdata\" width=\"50%\" >Owner Name</td>\r\n");
      out.write("\t\t\t<td class=\"tdata\" width=\"50%\" ><input class=\"inputstyle\"  type=\"text\"  name=\"ownerName\" ></td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"tdata\" width=\"50%\">Address</td>\r\n");
      out.write("\t\t\t<td class=\"tdata\" width=\"50%\"><input class=\"inputstyle\"  type=\"text\" name=\"address\"></td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"tdata\" width=\"50%\" >City</td>\r\n");
      out.write("\t\t\t<td class=\"tdata\" width=\"50%\" ><input class=\"inputstyle\"  type=\"text\"  name=\"city\"></td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"tdata\" width=\"50%\">Telephone No</td>\r\n");
      out.write("\t\t\t<td class=\"tdata\" width=\"50%\"><input class=\"inputstyle\"  type=\"text\" name=\"telNo\"></td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"thd\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td colspan=\"2\" align=\"center\">\r\n");
      out.write("\t\t\t\t<input class=\"btnaction\" type=\"submit\" value=\"Add\">\r\n");
      out.write("\t\t\t\t<input class=\"btnaction\" type=\"button\" value=\"Cancel\" onclick=\"faction()\">\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t</table>\r\n");
      out.write("\t<input type=\"hidden\" name=\"param\" value=\"add\">\r\n");
      out.write("\t<h2>");
      if (_jspx_meth_c_out_0(_jspx_page_context))
        return;
      out.write("</h2>\r\n");
      out.write("\t</form>\r\n");
      out.write("</td>\r\n");
      out.write("<!-- main body -->\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("\t<td class=\"thd\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("\t<td class=\"thd\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n");
      out.write("<!-- footer-->\r\n");
      out.write("<tr>\r\n");
      out.write("<td  class=\"tddata\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n");
      out.write("<td  class=\"tddata\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<!-- footer-->\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
      out.write('\r');
      out.write('\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_out_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_out_0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_out_0.setPageContext(_jspx_page_context);
    _jspx_th_c_out_0.setParent(null);
    _jspx_th_c_out_0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${message}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
    if (_jspx_th_c_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_0);
    return false;
  }
}

⌨️ 快捷键说明

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