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

📄 productpub_jsp.java

📁 一个公司企业网站的开发全过程,采用servlet/jsp的框架
💻 JAVA
字号:
package org.apache.jsp.product;

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

public final class productpub_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\t\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\r\n<title>产品发布</title>\r\n<script language=\"JavaScript\">\r\n<!--\r\nfunction validateCompose(){ \r\n\tvar productName = document.all.productName.value;\r\n\tvar productSpecs = document.all.productSpecs.value;\r\n\tvar systemProper = document.all.systemProper.value;\r\n\tvar productIntroduce = document.all.productIntroduce.value;\r\n\tvar productPrice = document.all.productPrice.value;\r\n\tif (productName ==\"\"){\r\n\t\talert(\"必须填写产品名称!\");\r\n\t\treturn false;\r\n\t}\r\n\tif (productSpecs ==\"\"){\r\n\t\talert(\"必须填写产品类型!\");\r\n\t\treturn false;\r\n\t}\r\n\tif (systemProper ==\"\"){\r\n\t\talert(\"必须填写适用系统!\");\r\n\t\treturn false;\r\n\t}\r\n\tif (productIntroduce ==\"\"){\r\n\t\talert(\"必须填写产品介绍!\");\r\n\t\treturn false;\r\n\t}\r\n\tif (productPrice ==\"\"){\r\n\t\talert(\"必须填写产品价格!\");\r\n\t\treturn false;\r\n\t}\r\n\treturn true;\r\n\t\r\n}\r\n\r\n-->\r\n</script>\r\n</head>\r\n\r\n<body>\r\n<div align=center>\r\n  <form name=\"productCompose\" method=\"post\" action=\"/wyweb/ProductComposeServlet\" onSubmit=\"return validateCompose();\">\r\n  <table width=\"750\" height=\"396\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("      <tr> \r\n        <td width=\"115\">产品名称</td>\r\n        <td width=\"635\" height=\"30\"><input type=\"text\" name=\"productName\" /></td>\r\n      </tr>\r\n      <tr> \r\n        <td>产品规格</td>\r\n        <td height=\"30\"><input type=\"text\" name=\"productSpecs\" /></td>\r\n      </tr>\r\n      <tr> \r\n        <td>适用系统</td>\r\n        <td height=\"30\"><input name=\"systemProper\" type=\"text\" /></td>\r\n      </tr>\r\n      <tr> \r\n        <td height=\"96\">产品介绍</td>\r\n        <td height=\"30\"><textarea name=\"productIntroduce\" cols=\"70\" rows=\"10\"></textarea></td>\r\n      </tr>\r\n      <tr> \r\n        <td>产品类别</td>\r\n        <td height=\"30\"><select name=\"ProductSort\" size=\"1\">\r\n            <option  selected=\"selected\" >his 系统</option>\r\n            <option >erp 系统</option>\r\n          </select></td>\r\n      </tr>\r\n       <tr> \r\n        <td>产品单价</td>\r\n        <td height=\"30\"><input name=\"productPrice\" type=\"text\" size=\"10\" />\r\n          元 \r\n          <input name=\"productPrice1\" type=\"text\" size=\"10\">\r\n          角 &nbsp; </td>\r\n      </tr>\r\n </table>\r\n \r\n\r\n  <table width=\"750\" height=\"30\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("    <tr> \r\n      <td height=\"30\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n        <input type=\"hidden\" name=\"hiddenField\" action=\"productCompose\"> \r\n        <input type=\"submit\" name=\"submit\" value=\"确定\" >\r\n        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \r\n        &nbsp; &nbsp; <input type=\"reset\" name=\"reset\" value=\"重置\"></td>\r\n    </tr>\r\n  </table>\r\n</form>\r\n</div>\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 + -