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

📄 index_jsp.java

📁 自己写的一个java购销系统
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
      out.write("\t\t\t\t\t<img name=\"Image1\" border=\"0\" src=\"images/index.gif\" width=\"90\" height=\"36\"></a></td>\r\n");
      out.write("\t\t          <td width=\"10%\"><a href=\"/estore/e_jsp/login.jsp\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image2','','images/reg_on.gif',1)\">\r\n");
      out.write("\t\t\t\t\t<img name=\"Image2\" border=\"0\" src=\"images/reg.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
      out.write("\t\t          <td width=\"10%\"><a href=\"/estore/e_jsp/login.jsp\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image4','','images/carts_on.gif',1)\">\r\n");
      out.write("\t\t\t\t\t<img name=\"Image4\" border=\"0\" src=\"images/cart.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
      out.write("\t\t          <td width=\"10%\"><a href=\"/estore/e_jsp/login.jsp\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image5','','images/order_on.gif',1)\">\r\n");
      out.write("\t\t\t\t\t<img name=\"Image5\" border=\"0\" src=\"images/order.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
      out.write("\t\t          <td width=\"10%\"><a href=\"/estore/e_jsp/login.jsp\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image6','','images/exit_on.gif',1)\">\r\n");
      out.write("\t\t\t\t\t<img name=\"Image6\" border=\"0\" src=\"images/exit.gif\" width=\"92\" height=\"36\"></a></td>\r\n");
      out.write("\t\t        </tr>\r\n");
      out.write("\t\t     ");

             }
             
      out.write("\r\n");
      out.write("\t\t      </table>\r\n");
      out.write("\t\t    </td>\r\n");
      out.write("\t\t  </tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t\t<table cellspacing=\"1\" cellpadding=\"3\" align=\"center\" border=\"0\" width=\"98%\">\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t<td width=\"65%\"><BR>\r\n");
      out.write("\t\t>> 欢迎访问 <b>兴华书店</b> </td>\r\n");
      out.write("\t\t<td width=\"35%\" align=\"right\">\r\n");
      out.write("\t\t</td></tr></table>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!--文件体开始-->\r\n");
      out.write("\t\t<table cellspacing=1 cellpadding=3 align=center class=tableBorder2>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t<td height=25 valign=middle>\r\n");
      out.write("                  <img src=\"images/Forum_nav.gif\" align=\"absmiddle\">\r\n");
      out.write("                  <a href=index.jsp>兴华书店</a> →\r\n");
      out.write("\t\t\t\t\t<img border=\"0\" src=\"images/dog.gif\" width=\"19\" height=\"18\">\r\n");
      out.write("\t\t\t\t\t欢迎<font color=\"red\"></font>光临!\r\n");
      out.write("                </td>\r\n");
      out.write("                </tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("    <br>\r\n");
      out.write("\t<form action=\"loginAction.do\" method=post name=\"login\">\r\n");
      out.write("\t\t<table cellpadding=3 cellspacing=1 align=center class=tableborder1>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td valign=middle align=center height=25 background=\"images/bg2.gif\" width=\"\"><font color=\"#ffffff\"><b>序号</b></font></td>\r\n");
      out.write("\t\t\t<td valign=middle align=center height=25 background=\"images/bg2.gif\" width=\"\"><font color=\"#ffffff\"><b>书名</b></font></td>\r\n");
      out.write("\t\t\t<td valign=middle align=center height=25 background=\"images/bg2.gif\" width=\"\"><font color=\"#ffffff\"><b>作者</b></font></td>\r\n");
      out.write("\t\t\t<td valign=middle align=center height=25 background=\"images/bg2.gif\" width=\"\"><font color=\"#ffffff\"><b>出版社</b></font></td>\r\n");
      out.write("\t\t\t<td valign=middle align=center height=25 background=\"images/bg2.gif\" width=\"\"><font color=\"#ffffff\"><b>单价</b></font></td>\r\n");
      out.write("\t\t\t<td valign=middle align=center height=25 background=\"images/bg2.gif\" width=\"\"><font color=\"#ffffff\"><b>出版日期</b></font></td>\r\n");
      out.write("\t\t\t<td valign=middle align=center height=25 background=\"images/bg2.gif\" width=\"\"><font color=\"#ffffff\"><b>操作</b></font></td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("        ");
      //  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("${allbook}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
      _jspx_th_c_forEach_0.setVar("book");
      _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("\r\n");
            out.write("        <TR>\r\n");
            out.write("            <Td class=tablebody2 valign=middle align=center width=\"\">");
            out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${status.count}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
            out.write("</Td>\r\n");
            out.write("            <Td class=tablebody1 valign=middle width=\"\">&nbsp;&nbsp;<a href=\"/estore/estore/listbookaction.do?productName=");
            out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book.productName}", 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("${book.productName}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
            out.write("</a></Td>\r\n");
            out.write("            <TD class=tablebody2 valign=middle align=center width=\"\">");
            out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book.author}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
            out.write("</Td>\r\n");
            out.write("            <Td class=tablebody2 valign=middle align=center width=\"\">");
            out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book.publisher}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
            out.write("</Td>\r\n");
            out.write("            <TD class=tablebody2 valign=middle align=center width=\"\">");
            out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book.price}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
            out.write("</Td>\r\n");
            out.write("            <TD class=tablebody2 valign=middle align=center width=\"\">");
            out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book.publishedDate}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
            out.write("</Td>\r\n");
            out.write("            <td class=tablebody1 valign=middle align=center width=\"\">\r\n");
            out.write("            ");
                
              User u=null;
              u=(User)session.getAttribute("user"); 
              if(u!=null){
             
            out.write("<a href=\"/estore/estore/user/listshoppingcart.do?productName=");
            out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${book.productName}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
            out.write("\">\r\n");
            out.write("             ");

              }else{
             
            out.write("<a href=\"/estore/e_jsp/login.jsp\">\r\n");
            out.write("             ");

              }
             
            out.write("\r\n");
            out.write("\t        <img border=\"0\" src=\"images/car_new.gif\" width=\"97\" height=\"18\"></a> </td>\r\n");
            out.write("        </TR>\r\n");
            out.write("        ");
            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;
        }
      } 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);
      }
      out.write("         \r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t</form>\r\n");
      out.write("\t\r\n");
      out.write("<!--文件尾开始-->\r\n");
      out.write("\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"28\">\r\n");
      out.write("\t\t  <tr>\r\n");
      out.write("\t\t    <td height=\"17\" background=\"images/bot_bg.gif\">\r\n");
      out.write("\t\t       </td>\r\n");
      out.write("\t\t  </tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
      out.write("\t\t  <tr>\r\n");
      out.write("\t\t    <td bgcolor=\"#f1f1f6\" height=\"53\" valign=\"center\">\r\n");
      out.write("\t\t\t<p align=\"center\">Copyright &copy;2008 - 2009 <a href=\"http://www.xinghua.com.cn\"><b><font face=\"Verdana,\">Xinghua</font></b><font color=#CC0000>.com.cn</font></a><br>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t  </tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t</body>\r\n");
      out.write("</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 + -