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

📄 inventory_0002ejsp_jsp.java

📁 是一个不错的库存管理的源代码。实现了库存主要功能
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class inventory_0002ejsp_jsp extends HttpJspBase {


    static {
    }
    public inventory_0002ejsp_jsp( ) {
    }

    private static boolean _jspx_inited = false;

    public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
    }

    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;
        String  _value = null;
        try {

            if (_jspx_inited == false) {
                synchronized (this) {
                    if (_jspx_inited == false) {
                        _jspx_init();
                        _jspx_inited = true;
                    }
                }
            }
            _jspxFactory = JspFactory.getDefaultFactory();
            response.setContentType("text/html; charset=GBK");
            pageContext = _jspxFactory.getPageContext(this, request, response,
            			"", true, 8192, true);

            application = pageContext.getServletContext();
            config = pageContext.getServletConfig();
            session = pageContext.getSession();
            out = pageContext.getOut();

            // HTML // begin [file="/inventory.jsp";from=(0,48);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/inventory.jsp";from=(1,58);to=(2,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/inventory.jsp";from=(2,58);to=(3,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/inventory.jsp";from=(3,60);to=(4,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/inventory.jsp";from=(4,62);to=(76,0)]
                out.write("\r\n<html>\r\n<head>\r\n <link rel=\"STYLESHEET\" type=\"text/css\" href=\"css/shared.css\">\r\n<title>\r\ninventory\r\n</title>\r\n<script language=\"javascript\">\r\nvar selectedTr = null;\r\nfunction setTrColor(colorTr,color)\r\n{\r\n if(colorTr.tagName==\"TR\")\r\n {\r\n  for(var i=0;i<colorTr.childNodes.length;i++)\r\n  {\r\n   colorTr.childNodes(i).style.backgroundColor = color;\r\n   colorTr.childNodes(i).children(0).style.backgroundColor = color;\r\n  }\r\n }\r\n}\r\nfunction addinventory()\r\n{\r\n     document.inventoryActionForm.operation.value = \"add\";\r\n     document.inventoryActionForm.submit();\r\n}\r\nfunction deleteinventory()\r\n{\r\n\r\n     if(selectedTr!=null)\r\n    {   alert(selectedTr.childNodes(0).children(1).value);\r\n\tif(selectedTr.childNodes(0).children(1).value!=0&&selectedTr.childNodes(0).children(1).value!=null)\r\n        {\r\n\t\tdocument.inventoryActionForm.deleteUID.value = selectedTr.childNodes(0).children(1).value;\r\n\t\tdocument.inventoryActionForm.operation.value=\"delete\";\r\n\t\tinventoryRows.removeChild(selectedTr);\r\n       \t\tselectedTr = null;\r\n       \t\tdocument.inventoryActionForm.submit();\r\n        }else\r\n\t{\r\n\t\tinventoryRows.removeChild(selectedTr);\r\n\t\tselectedTr = null;\r\n\t}\r\n    }\r\n}\r\nfunction saveinventory()\r\n{\r\n\r\n \tdocument.inventoryActionForm.operation.value = \"save\";\r\n\tdocument.inventoryActionForm.submit();\r\n}\r\nfunction onClickedCell()\r\n{\r\n var clickedcell = event.srcElement;\r\n if(selectedTr!=null)\r\n{\r\n  setTrColor(selectedTr,\"#FFFFFF\");\r\n}\r\n while(clickedcell.tagName!=\"TR\")\r\n {\r\n   clickedcell = clickedcell.parentElement;\r\n }\r\n selectedTr = clickedcell;\r\n setTrColor(selectedTr,\"#FFDDFF\");\r\n}\r\n</script>\r\n</head>\r\n<body bgcolor=\"#ffffff\" >\r\n<h3 align=\"center\">\r\n库房信息\r\n</h3>\r\n<br>\r\n<hr height=1 />\r\n");

            // end
            // begin [file="/inventory.jsp";from=(76,0);to=(76,53)]
                /* ----  html:form ---- */
                org.apache.struts.taglib.html.FormTag _jspx_th_html_form_0 = new org.apache.struts.taglib.html.FormTag();
                _jspx_th_html_form_0.setPageContext(pageContext);
                _jspx_th_html_form_0.setParent(null);
                _jspx_th_html_form_0.setMethod("post");
                _jspx_th_html_form_0.setAction("inventoryAction.do");
                try {
                    int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
                    if (_jspx_eval_html_form_0 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED)
                        throw new JspTagException("Since tag handler class org.apache.struts.taglib.html.FormTag does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG");
                    if (_jspx_eval_html_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        do {
                        // end
                        // HTML // begin [file="/inventory.jsp";from=(76,53);to=(77,0)]
                            out.write("\r\n");

                        // end
                        // begin [file="/inventory.jsp";from=(77,0);to=(77,63)]
                            /* ----  html:hidden ---- */
                            org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_0 = new org.apache.struts.taglib.html.HiddenTag();
                            _jspx_th_html_hidden_0.setPageContext(pageContext);
                            _jspx_th_html_hidden_0.setParent(_jspx_th_html_form_0);
                            _jspx_th_html_hidden_0.setName("inventoryActionForm");
                            _jspx_th_html_hidden_0.setProperty("deleteUID");
                            try {
                              int _jspx_eval_html_hidden_0 = _jspx_th_html_hidden_0.doStartTag();
                              if (_jspx_eval_html_hidden_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                              try {
                              if (_jspx_eval_html_hidden_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                              out = pageContext.pushBody();
                              _jspx_th_html_hidden_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                              _jspx_th_html_hidden_0.doInitBody();
                          }
                          do {
                          // end
                          // begin [file="/inventory.jsp";from=(77,0);to=(77,63)]
                          } while (_jspx_th_html_hidden_0.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
                      } finally {
                          if (_jspx_eval_html_hidden_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
                              out = pageContext.popBody();
                      }
                  }
                  if (_jspx_th_html_hidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                      return;
              } finally {
                  _jspx_th_html_hidden_0.release();
              }
          // end
          // HTML // begin [file="/inventory.jsp";from=(77,63);to=(78,0)]
              out.write("\r\n");

          // end
          // begin [file="/inventory.jsp";from=(78,0);to=(78,62)]
              /* ----  html:hidden ---- */
              org.apache.struts.taglib.html.HiddenTag _jspx_th_html_hidden_1 = new org.apache.struts.taglib.html.HiddenTag();
              _jspx_th_html_hidden_1.setPageContext(pageContext);
              _jspx_th_html_hidden_1.setParent(_jspx_th_html_form_0);
              _jspx_th_html_hidden_1.setName("inventoryActionForm");
              _jspx_th_html_hidden_1.setProperty("operation");
              try {
                  int _jspx_eval_html_hidden_1 = _jspx_th_html_hidden_1.doStartTag();
                  if (_jspx_eval_html_hidden_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                      try {
                          if (_jspx_eval_html_hidden_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                              out = pageContext.pushBody();
                              _jspx_th_html_hidden_1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                              _jspx_th_html_hidden_1.doInitBody();
                          }
                          do {
                          // end
                          // begin [file="/inventory.jsp";from=(78,0);to=(78,62)]
                          } while (_jspx_th_html_hidden_1.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
                      } finally {
                          if (_jspx_eval_html_hidden_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
                              out = pageContext.popBody();
                      }
                  }
                  if (_jspx_th_html_hidden_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                      return;
              } finally {
                  _jspx_th_html_hidden_1.release();
              }
          // end
          // HTML // begin [file="/inventory.jsp";from=(78,62);to=(88,0)]
              out.write("\r\n<table width=\"100%\">\r\n<tr>\r\n<td class=\"tdframe\">\r\n<table class=\"table1\"  width=\"100%\">\r\n<thead class=\"tdsectionbar\">\r\n<td align=\"center\" class=\"tdsectionbar\" >仓库名称</td>\r\n<td align=\"center\" class=\"tdsectionbar\" >仓库位置</td>\r\n</thead>\r\n<tbody id=\"inventoryRows\" onclick=\"onClickedCell()\">\r\n");

          // end
          // begin [file="/inventory.jsp";from=(88,0);to=(88,80)]
              /* ----  logic:iterate ---- */
              org.apache.struts.taglib.logic.IterateTag _jspx_th_logic_iterate_0 = new org.apache.struts.taglib.logic.IterateTag();
              _jspx_th_logic_iterate_0.setPageContext(pageContext);
              _jspx_th_logic_iterate_0.setParent(_jspx_th_html_form_0);
              _jspx_th_logic_iterate_0.setName("inventoryActionForm");
              _jspx_th_logic_iterate_0.setProperty("inventorys");
              _jspx_th_logic_iterate_0.setId("inventorys");

⌨️ 快捷键说明

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