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

📄 productsearch_jsp.java

📁 该电子商城系统是在J2EE平台上用Struts框架技术和MVC模式构建
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
              out.write("\r\n<TABLE border=0 cellPadding=0 cellSpacing=0 width=152>\r\n  <TBODY>\r\n      <TR>\r\n      \t<TD colSpan=3><IMG border=0 src=\"");
              out.print(request.getContextPath());
              out.write("/images/left_search_top.gif\"></TD>\r\n      </TR>\r\n      <TR>\r\n        <TD bgColor=#cccccc><IMG alt=\"\" border=0 height=1 src=\"");
              out.print(request.getContextPath());
              out.write("/images/dot.gif\" width=1></TD>\r\n\t<TD align=center class=ko width=150>\r\n          <TABLE>\r\n\r\n            <TBODY>\r\n              <TR>\r\n                <!-- <TD colSpan=2><INPUT name=keyword style=\"WIDTH: 130px\"></TD> -->\r\n                <TD>");
              if (_jspx_meth_html_text_1(_jspx_th_html_form_1, pageContext))
                return;
              out.write("</TD>\r\n              </TR>\r\n              <TR>\r\n             <!--   <TD>\r\n                 ");
              if (_jspx_meth_html_select_0(_jspx_th_html_form_1, pageContext))
                return;
              out.write("\r\n                </TD>\r\n                -->\r\n           <TD aling=\"center\"><INPUT border=0 name=imageField src=\"");
              out.print(request.getContextPath());
              out.write("/images/search_go.gif\"\r\n                  type=image onclick=\"return searchProductsByCat();\"></TD>\r\n              </TR>\r\n            </TBODY>\r\n\r\n          </TABLE>\r\n\t</TD>\r\n        <TD bgColor=#cccccc><IMG alt=\"\" border=0 height=1 src=\"");
              out.print(request.getContextPath());
              out.write("/images/dot.gif\" width=1></TD>\r\n      </TR>\r\n      <TR>\r\n        <TD colSpan=3><IMG border=0 src=\"");
              out.print(request.getContextPath());
              out.write("/images/user_info_bottom.gif\"></TD>\r\n      </TR>\r\n  </TBODY>\r\n</TABLE>\r\n<TABLE border=0 cellPadding=0 cellSpacing=0 width=152>\r\n  <TBODY>\r\n      <TR>\r\n        <TD height=5><IMG alt=\"\" border=0 height=5 src=\"");
              out.print(request.getContextPath());
              out.write("/images/dot.gif\" width=1></TD>\r\n      </TR>\r\n  </TBODY>\r\n</TABLE>\r\n<!-- product directory begin -->\r\n<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=152>\r\n  <tr>\r\n    <td height=\"5\"><IMG SRC=\"");
              out.print(request.getContextPath());
              out.write("/images/dot.gif\" WIDTH=\"1\" HEIGHT=\"5\" BORDER=0 ></td>\r\n  </tr>\r\n</table>\r\n<table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=152>\r\n  <tr>\r\n    <td colspan=3><img src=\"");
              out.print(request.getContextPath());
              out.write("/images/left_product_top.gif\" border=\"0\"></td>\r\n  </tr>\r\n  <tr>\r\n    <td bgcolor=\"#CCCCCC\"><IMG SRC=\"");
              out.print(request.getContextPath());
              out.write("/images/dot.gif\" WIDTH=\"1\" HEIGHT=\"1\" BORDER=0 ></td>\r\n    <td align=center class=\"ko\" width=\"150\">\r\n    <table width=\"140\">\r\n      <tr>\r\n        <td class=\"txt\">\r\n          <a href='/shop/product/search.do?catId=1'><img src='");
              out.print(request.getContextPath());
              out.write("/images/add.gif' border=0 alt='' align='left' vspace=4>");
              if (_jspx_meth_bean_message_5(_jspx_th_html_form_1, pageContext))
                return;
              out.write("</a><br>\r\n          <a href='/shop/product/search.do?catId=2'><img src='");
              out.print(request.getContextPath());
              out.write("/images/add.gif' border=0 alt='' align='left' vspace=4>");
              if (_jspx_meth_bean_message_6(_jspx_th_html_form_1, pageContext))
                return;
              out.write("</a><br>\r\n          <a href='/shop/product/search.do?catId=3'><img src='");
              out.print(request.getContextPath());
              out.write("/images/add.gif' border=0 alt='' align='left' vspace=4>VCD</a><br>\r\n          <a href='/shop/product/search.do?catId=4'><img src='");
              out.print(request.getContextPath());
              out.write("/images/add.gif' border=0 alt='' align='left' vspace=4>DVD</a><br>\r\n          <a href='/shop/product/search.do?catId=5'><img src='");
              out.print(request.getContextPath());
              out.write("/images/add.gif' border=0 alt='' align='left' vspace=4>CD</a><br>\r\n          <a href='/shop/product/search.do?catId=6'><img src='");
              out.print(request.getContextPath());
              out.write("/images/add.gif' border=0 alt='' align='left' vspace=4>");
              if (_jspx_meth_bean_message_7(_jspx_th_html_form_1, pageContext))
                return;
              out.write("</a><br>\r\n        </td>\r\n      </tr>\r\n    </table>\r\n    </td>\r\n    <td bgcolor=\"#CCCCCC\"><IMG SRC=\"");
              out.print(request.getContextPath());
              out.write("/images/dot.gif\" WIDTH=\"1\" HEIGHT=\"1\" BORDER=0></td>\r\n  </tr>\r\n  <tr>\r\n    <td colspan=3><img src=\"");
              out.print(request.getContextPath());
              out.write("/images/user_info_bottom.gif\" border=\"0\"></td>\r\n  </tr>\r\n</table>\r\n<table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=152>\r\n  <tr>\r\n    <td height=\"5\"><IMG SRC=\"");
              out.print(request.getContextPath());
              out.write("/images/dot.gif\" WIDTH=\"1\" HEIGHT=\"5\" BORDER=0></td>\r\n  </tr>\r\n</table>\r\n\r\n");
              int evalDoAfterBody = _jspx_th_html_form_1.doAfterBody();
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
          }
          if (_jspx_th_html_form_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_html_form_type_name_action.reuse(_jspx_th_html_form_1);
          out.write("\r\n<!-- treemenu begin -->");
          out.write("\r\n</td>\r\n\r\n");
          //  html:form
          org.apache.struts.taglib.html.FormTag _jspx_th_html_form_2 = (org.apache.struts.taglib.html.FormTag) _jspx_tagPool_html_form_type_name_action.get(org.apache.struts.taglib.html.FormTag.class);
          _jspx_th_html_form_2.setPageContext(pageContext);
          _jspx_th_html_form_2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_0);
          _jspx_th_html_form_2.setName("formpage");
          _jspx_th_html_form_2.setAction("/product/search.do");
          _jspx_th_html_form_2.setType("com.publish.shop.product.javabeans.ProductForm");
          int _jspx_eval_html_form_2 = _jspx_th_html_form_2.doStartTag();
          if (_jspx_eval_html_form_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            do {
              out.write('\r');
              out.write('\n');
              if (_jspx_meth_html_hidden_2(_jspx_th_html_form_2, pageContext))
                return;
              out.write('\r');
              out.write('\n');
              if (_jspx_meth_html_hidden_3(_jspx_th_html_form_2, pageContext))
                return;
              out.write("\r\n<TD vAlign=\"top\" align=\"left\" width=100%>\r\n<!-- middle-top part -->\r\n<TABLE WIDTH=525 BORDER=0 CELLSPACING=0 CELLPADDING=0>\r\n<TR>\r\n  <TD>\r\n    <TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>\r\n    <TR>\r\n      <TD><B><FONT COLOR=\"#0033CC\">物品列表</FONT></B><IMG SRC=\"");
              out.print(contextPath);
              out.write("/images/arrow.gif\" BORDER=0></TD>\r\n    </TR>\r\n    <TR BGCOLOR=\"#000000\">\r\n      <TD COLSPAN=\"2\"><IMG SRC=\"");
              out.print(contextPath);
              out.write("/images/dot.gif\" WIDTH=\"1\" HEIGHT=\"1\" BORDER=0 ALT=\"\"></TD>\r\n    </TR>\r\n    </TABLE>\r\n  </TD>\r\n</TABLE>\r\n<!-- middle-middle part -->\r\n<br>\r\n<!-- middle-bottom part -->\r\n");
              //  logic:present
              org.apache.struts.taglib.logic.PresentTag _jspx_th_logic_present_0 = (org.apache.struts.taglib.logic.PresentTag) _jspx_tagPool_logic_present_name.get(org.apache.struts.taglib.logic.PresentTag.class);
              _jspx_th_logic_present_0.setPageContext(pageContext);
              _jspx_th_logic_present_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_form_2);
              _jspx_th_logic_present_0.setName("ProductList");
              int _jspx_eval_logic_present_0 = _jspx_th_logic_present_0.doStartTag();
              if (_jspx_eval_logic_present_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                do {
                  out.write("\r\n<TABLE WIDTH=525 BORDER=0 CELLSPACING=0 CELLPADDING=0>\r\n<TR>\r\n  <TD colspan=\"7\" class=\"DetailDescription-TdCN\">\r\n    ");
                  if (_jspx_meth_shop_pager_0(_jspx_th_logic_present_0, pageContext))
                    return;
                  out.write("\r\n  </TR>\r\n");
                  //  logic:iterate
                  org.apache.struts.taglib.logic.IterateTag _jspx_th_logic_iterate_0 = (org.apache.struts.taglib.logic.IterateTag) _jspx_tagPool_logic_iterate_type_name_id.get(org.apache.struts.taglib.logic.IterateTag.class);
                  _jspx_th_logic_iterate_0.setPageContext(pageContext);
                  _jspx_th_logic_iterate_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_logic_present_0);
                  _jspx_th_logic_iterate_0.setId("ProductForm01");
                  _jspx_th_logic_iterate_0.setName("ProductList");
                  _jspx_th_logic_iterate_0.setType("com.publish.shop.product.javabeans.ProductModel");
                  int _jspx_eval_logic_iterate_0 = _jspx_th_logic_iterate_0.doStartTag();
                  if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                    com.publish.shop.product.javabeans.ProductModel ProductForm01 = null;
                    if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                      out = pageContext.pushBody();
                      _jspx_th_logic_iterate_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                      _jspx_th_logic_iterate_0.doInitBody();
                    }
                    ProductForm01 = (com.publish.shop.product.javabeans.ProductModel) pageContext.findAttribute("ProductForm01");
                    do {
                      out.write("\r\n<TR>\r\n  <TD><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/left_topcorner.gif\" BORDER=\"0\"></TD>\r\n  <TD WIDTH=100% BGCOLOR=\"#CCCCCC\"><FONT COLOR=\"#0233CE\" CLASS=v9>");
                      if (_jspx_meth_bean_write_0(_jspx_th_logic_iterate_0, pageContext))
                        return;
                      out.write(" &gt&gt</FONT></TD>\r\n  <TD><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/right_topcorner.gif\" BORDER=\"0\"></TD>\r\n</TR>\r\n<TR>\r\n  <TD BACKGROUND=\"");
                      out.print(contextPath);
                      out.write("/images/pborder_left.gif\"><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/dot.gif\" WIDTH=\"20\" HEIGHT=\"8\" BORDER=0 ALT=\"\"></TD>\r\n  <TD WIDTH=100% HEIGHT=22 CLASS=v9>物品分类:");
                      if (_jspx_meth_bean_write_1(_jspx_th_logic_iterate_0, pageContext))
                        return;
                      out.write("</TD>\r\n  <TD BACKGROUND=\"");
                      out.print(contextPath);
                      out.write("/images/pborder_right.gif\"><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/dot.gif\" WIDTH=\"20\" HEIGHT=\"8\" BORDER=0 ALT=\"\"></TD>\r\n</TR>\r\n<TR>\r\n  <TD BACKGROUND=\"");
                      out.print(contextPath);
                      out.write("/images/pborder_left.gif\"><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/dot.gif\" WIDTH=\"20\" HEIGHT=\"1\" BORDER=0 ALT=\"\"></TD>\r\n  <TD VALIGN=top ALIGN=center>\r\n    <TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=5 BORDER=0>\r\n    <TR>\r\n      <TD WIDTH=100 ALIGN=center VALIGN=top ROWSPAN=2>\r\n       <IMG SRC=\" ");
                      out.print(contextPath);
                      out.write("/images/product/");
                      if (_jspx_meth_bean_write_2(_jspx_th_logic_iterate_0, pageContext))
                        return;
                      out.write(" \" BORDER=\"0\" width=\"100\" ></TD>\r\n      <TD CLASS=v9 VALIGN=top>&nbsp;</TD>\r\n    </TR>\r\n    <TR>\r\n      <TD VALIGN=bottom>&nbsp;\r\n        <TABLE>\r\n        <TR>\r\n          <TD COLSPAN=8 CLASS=txt><FONT CLASS=v20 COLOR=#990000><B>&yen;");
                      if (_jspx_meth_bean_write_3(_jspx_th_logic_iterate_0, pageContext))
                        return;
                      out.write("</B></FONT><br> 当前库存量:");
                      if (_jspx_meth_bean_write_4(_jspx_th_logic_iterate_0, pageContext))
                        return;
                      out.write("</TD>\r\n        </TR>\r\n        <TR>\r\n          <TD><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/sign2.gif\" BORDER=0 ALT=\"\"></TD>\r\n          <TD CLASS=txt>\r\n\t\t");
                      if (_jspx_meth_html_link_0(_jspx_th_logic_iterate_0, pageContext))
                        return;
                      out.write("\r\n          </TD>\r\n          <TD><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/sign2.gif\" BORDER=0 ALT=\"\"></TD>\r\n          <TD CLASS=txt>\r\n\t\t");
                      if (_jspx_meth_html_link_1(_jspx_th_logic_iterate_0, pageContext))
                        return;
                      out.write("\r\n          </TD>\r\n<!--          <TD><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/sign2.gif\" BORDER=0 ALT=\"\"></TD>\r\n          <TD CLASS=txt><A HREF=\"modify.asp?id=213\">管理</A></TD>\r\n          <TD><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/sign2.gif\" BORDER=0 ALT=\"\"></TD>\r\n          <TD CLASS=txt><A HREF=\"../../purchase/prodetail.asp?itemid=213\">相关订单</A></TD> -->\r\n        </TR>\r\n        </TABLE>\r\n      </TD>\r\n    </TR>\r\n    </TABLE>\r\n  </TD>\r\n  <TD BACKGROUND=\"");
                      out.print(contextPath);
                      out.write("/images/pborder_right.gif\"><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/dot.gif\" WIDTH=\"20\" HEIGHT=\"1\" BORDER=0 ALT=\"\"></TD>\r\n</TR>\r\n<TR>\r\n  <TD COLSPAN=3 BGCOLOR=\"#CCCCCC\"><IMG SRC=\"");
                      out.print(contextPath);
                      out.write("/images/dot.gif\" WIDTH=\"1\" HEIGHT=\"1\" BORDER=0 ALT=\"\"></TD>\r\n</TR>\r\n");
                      int evalDoAfterBody = _jspx_th_logic_iterate_0.doAfterBody();
                      ProductForm01 = (com.publish.shop.product.javabeans.ProductModel) pageContext.findAttribute("ProductForm01");
                      if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                        break;
                    } while (true);
                    if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
                      out = pageContext.popBody();
                  }
                  if (_jspx_th_logic_iterate_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                    return;
                  _jspx_tagPool_logic_iterate_type_name_id.reuse(_jspx_th_logic_iterate_0);
                  out.write("\r\n</TABLE>\r\n");
                  int evalDoAfterBody = _jspx_th_logic_present_0.doAfterBody();
                  if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
                } while (true);
              }
              if (_jspx_th_logic_present_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                return;
              _jspx_tagPool_logic_present_name.reuse(_jspx_th_logic_present_0);
              out.write("\r\n</td>\r\n");
              int evalDoAfterBody = _jspx_th_html_form_2.doAfterBody();
              if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
            } while (true);
          }
          if (_jspx_th_html_form_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_html_form_type_name_action.reuse(_jspx_th_html_form_2);
          out.write("\r\n<!-- foot begin -->\r\n<CENTER><TABLE>\r\n<TR>\r\n  <TD class=txt>版权所有|  法律声明|  联系我们  </TD>\r\n</TR>\r\n</TABLE></CENTER>\r\n<BR>\r\n</table>\r\n</body>\r\n");
          int evalDoAfterBody = _jspx_th_html_html_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_html_html_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return;
      _jspx_tagPool_html_html.reuse(_jspx_th_html_html_0);
      out.write("\r\n\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (pageContext != null) pageContext.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }

  private boolean _jspx_meth_shop_menu_0(javax.servlet.jsp.tagext.JspTag _jspx_th_html_html_0, PageContext pageContext)
          throws Throwable {
    JspWriter out = pageContext.getOut();
    //  shop:menu
    com.publish.shop.taglib.ShopMenu _jspx_th_shop_menu_0 = (com.publish.shop.taglib.ShopMenu) _jspx_tagPool_shop_menu.get(com.publish.shop.taglib.ShopMenu.class);
    _jspx_th_shop_menu_0.setPageContext(pageContext);
    _jspx_th_shop_menu_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_0);

⌨️ 快捷键说明

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