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

📄 shoppingcart_005fbody_jsp.java

📁 工厂版本管理系统,STRUTS2框架,用于管理商品的版本,便于有效的控制版本
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
      do {
        out.write("\n");
        out.write("\t\t\t\t\t<div style=\"font-size: 75%;\" id=\"errorHeading\">\n");
        out.write("\t\t\t\t\t\t<h4>很抱歉! 系统未能完成您的要求!</h4>\n");
        out.write("\t\t\t\t\t\t详情请参考下列红色标示的信息。如需协助, 请致电RS网上帮助热线与我们联络。\n");
        out.write("\t\t\t\t\t</div>\t\n");
        out.write("\t\t\t\t");
        int evalDoAfterBody = _jspx_th_s_if_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_s_if_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
        out = _jspx_page_context.popBody();
    }
    if (_jspx_th_s_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _jspx_tagPool_s_if_test.reuse(_jspx_th_s_if_0);
      return true;
    }
    _jspx_tagPool_s_if_test.reuse(_jspx_th_s_if_0);
    return false;
  }

  private boolean _jspx_meth_s_if_1(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:if
    org.apache.struts2.views.jsp.IfTag _jspx_th_s_if_1 = (org.apache.struts2.views.jsp.IfTag) _jspx_tagPool_s_if_test.get(org.apache.struts2.views.jsp.IfTag.class);
    _jspx_th_s_if_1.setPageContext(_jspx_page_context);
    _jspx_th_s_if_1.setParent(null);
    _jspx_th_s_if_1.setTest("getSessionUser()==null");
    int _jspx_eval_s_if_1 = _jspx_th_s_if_1.doStartTag();
    if (_jspx_eval_s_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_s_if_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.pushBody();
        _jspx_th_s_if_1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
        _jspx_th_s_if_1.doInitBody();
      }
      do {
        out.write("\n");
        out.write("\t\t\t\t<div id=\"priceMessage\">由于您现时未有登入,所以系統显示价格或不等同于您的实际价格 - \n");
        out.write("\t\t\t\t\t<a title=\"登入\" href=\"../other/auth.login.action\">登入</a>\n");
        out.write("\t\t\t\t</div>\n");
        out.write("\t\t\t");
        int evalDoAfterBody = _jspx_th_s_if_1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_s_if_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
        out = _jspx_page_context.popBody();
    }
    if (_jspx_th_s_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _jspx_tagPool_s_if_test.reuse(_jspx_th_s_if_1);
      return true;
    }
    _jspx_tagPool_s_if_test.reuse(_jspx_th_s_if_1);
    return false;
  }

  private boolean _jspx_meth_c_forEach_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:forEach
    org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_varStatus_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
    _jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
    _jspx_th_c_forEach_0.setParent(null);
    _jspx_th_c_forEach_0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${items}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
    _jspx_th_c_forEach_0.setVar("item");
    _jspx_th_c_forEach_0.setVarStatus("status");
    int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
    try {
      int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
      if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\t\t\t\t\n");
          out.write("\t\t\t\t\t\t<tr>\t\t\t\t\t\n");
          out.write("\t\t\t\t\t\t\t");
          if (_jspx_meth_c_if_0(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
            return true;
          out.write("\t\t\t\t\t\t\t\n");
          out.write("\t\t\t\t\t\t\t\t\t\t\t\t\n");
          out.write("\t\t\t\t\t\t\t<!-- Blank Rows -->\t\t\t\t\t\t\n");
          out.write("\t\t\t\t\t\t\t");
          if (_jspx_meth_c_if_3(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
            return true;
          out.write("\t\t\t\t    \t\n");
          out.write("\t\t\t\t\t\t\t\n");
          out.write("\t\t\t\t\t\t");
          int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        return true;
      }
    } catch (Throwable _jspx_exception) {
      while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_c_forEach_0.doCatch(_jspx_exception);
    } finally {
      _jspx_th_c_forEach_0.doFinally();
      _jspx_tagPool_c_forEach_varStatus_var_items.reuse(_jspx_th_c_forEach_0);
    }
    return false;
  }

  private boolean _jspx_meth_c_if_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_if_0.setPageContext(_jspx_page_context);
    _jspx_th_c_if_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
    _jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.productId!=null}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
    if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\n");
        out.write("\t\t\t\t\t\t\t\t<!-- stock number -->\t\n");
        out.write("\t\t\t\t\t\t        <td valign=\"top\" align=\"center\" class=\"cellStockNo\">\n");
        out.write("\t\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"2347452\" name=\"oldstocknum\"/>\n");
        out.write("\t\t\t\t\t\t\t\t\t<input type=\"text\" onkeydown=\"return checkEnter(event)\" value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.productId }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\" name=\"items[");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${status.index }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("].productId\" class=\"cellStockNoField\"/>\n");
        out.write("\t\t\t\t\t\t\t\t</td>\n");
        out.write("\t\t\t\t\t\t\t\t<!-- QTY -->\n");
        out.write("\t\t\t\t\t\t\t\t<td valign=\"top\" align=\"center\" class=\"cellQty\"><input type=\"text\" onkeydown=\"return checkEnterQty(event)\" value=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.quantity }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\" name=\"items[");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${status.index }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("].quantity\" class=\"cellQtyField\"/></td>\n");
        out.write("\t\t\t\t\t\t\t\t");
        if (_jspx_meth_c_if_1(_jspx_th_c_if_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
          return true;
        out.write("\n");
        out.write("\t\t\t\t\t\t\t\t\n");
        out.write("\t\t\t\t\t\t\t\t<!-- product.id not existing -->\n");
        out.write("\t\t\t\t\t\t\t\t");
        if (_jspx_meth_c_if_2(_jspx_th_c_if_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
          return true;
        out.write("\n");
        out.write("\t\t\t\t\t\t\t\t\n");
        out.write("\t\t\t\t\t\t\t\t<!-- REMOVE -->\n");
        out.write("\t\t\t\t\t        \t<td valign=\"top\" class=\"cellRemove\">\n");
        out.write("\t\t\t\t\t\t\t\t\t<a title=\"移除\" href=\"shoppingcart.remove.action?productId=");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.productId }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\">\n");
        out.write("\t\t\t\t\t\t\t\t\t\t<img border=\"0\" alt=\"editButRemove\" src=\"http://img-china.rs-online.com/cn03/img/site/cart/remove.gif\"/>\n");
        out.write("\t\t\t\t\t\t\t\t\t</a>\n");
        out.write("\t\t\t\t\t\t\t\t</td>\n");
        out.write("\t\t\t\t\t\t\t");
        int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
      return true;
    }
    _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
    return false;
  }

  private boolean _jspx_meth_c_if_1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_if_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_if_1.setPageContext(_jspx_page_context);
    _jspx_th_c_if_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_0);
    _jspx_th_c_if_1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.product != null}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
    if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\t\t\t\t\t\t\t\n");
        out.write("\t\t\t\t\t\t\t\t\t<!-- DESCRIPTION + IMAGE -->\n");
        out.write("\t\t\t\t\t\t\t        <td valign=\"top\" class=\"cellDescription\">\t\t\t\t\t\t\t\n");
        out.write("\t\t\t\t\t\t                <!-- ssm number -->\t\n");
        out.write("\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" value=\"1\" name=\"ssm\"/>\t\t\t\n");
        out.write("\t\t\t\t\t\t\t\t\t\t<!-- Item line error messages -->\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\n");
        out.write("\t\t\t\t\t\t\t\t\t\t<!-- Off Sale error message -->\t\t\t\t\t\n");
        out.write("\t\t\t\t\t\t\t\t\t\t<!-- Ean error message -->\t\t\t\t\t\n");
        out.write("\t\t\t\t\t\t\t\t\t\t<!-- End of Item line error messages -->\n");
        out.write("\t\t\t\t\t\t\t\t\t\t<div style=\"clear: both;\"/>\t\t\n");
        out.write("\t\t\t\t\t\t\t\t\t\t<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t<tbody>\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<td valign=\"top\">\t\t\t\t\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"cellImage\">\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img border=\"0\" title=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.product.shortDetail }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\" \n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talt=\"");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.product.shortDetail }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\" \n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc=\"../image-files?entity=product&size=small&id=");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.product.id }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("\" width=\"40\"/></div>\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<td valign=\"top\">\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"cellDescritionDisplay\">\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"product-detail.action?product.id=");
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.product.id}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write('"');
        out.write('>');
        out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.product.shortDetail }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
        out.write("</a>\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"cellAvailabilityDisplayOutOfStock\">可于20个工作天内发货</p>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n");
        out.write("\t\t\t\t\t\t\t\t\t\t\t</tbody>\n");
        out.write("\t\t\t\t\t\t\t\t\t\t</table>\n");
        out.write("\t\t\t\t\t\t\t\t\t</td>\n");
        out.write("\t\n");
        out.write("\t\t\t\t\t\t\t\t\t<!-- UNITS -->\n");

⌨️ 快捷键说明

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