index_jsp.java
来自「《基于Eclipse的开源框架技术与实战》[第5章]随书源码」· Java 代码 · 共 1,145 行 · 第 1/5 页
JAVA
1,145 行
return;
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"165\" bgcolor=\"#DADAFF\" nowrap>\r\n");
out.write(" ");
if (_jspx_meth_html_img_8(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"100%\" bgcolor=\"#DADAFF\" nowrap>\r\n");
out.write(" ");
if (_jspx_meth_html_img_9(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("\r\n");
out.write("\t\t\r\n");
out.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"645\">\r\n");
out.write("<tr>\r\n");
out.write(" <td valign=\"top\" background=\"images/freeshipping.gif\">\r\n");
out.write(" <img src=\"images/spacer.gif\" border=\"0\" height=\"20\" width=\"280\" alt=\"\"><br>\r\n");
out.write(" <img src=\"images/spacer.gif\" border=\"0\" height=\"55\" width=\"21\" alt=\"\"> \r\n");
out.write(" <table >\r\n");
out.write(" <tr>\r\n");
out.write(" <td>\r\n");
out.write(" <img src=\"images/spacer.gif\" border=\"0\" height=\"20\" width=\"124\" alt=\"\">\r\n");
out.write(" </td>\r\n");
out.write("\r\n");
out.write(" <td><b>\r\n");
out.write(" <span class=\"body-headline-gold\">\r\n");
out.write(" Limited time offer<br>\r\n");
out.write(" </span></b>\r\n");
out.write(" <span class=\"home-main-text\">Receive free shipping on purchases of any Muffler.<br>\r\n");
out.write(" </span>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write(" <td>\r\n");
out.write(" ");
if (_jspx_meth_html_link_3(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("\r\n");
out.write(" </td>\r\n");
out.write(" <td valign=\"top\" width=\"108\" align=\"right\"><br>\r\n");
out.write(" <table width=\"90\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"right\">\r\n");
out.write("\t<tr>\r\n");
out.write("\t <td colspan=\"5\"><img src=\"images/featured_dept.gif\"></td>\r\n");
out.write("\t</tr>\r\n");
out.write("\t<tr>\r\n");
out.write("\t <td width=\"1\"><img src=\"images/spacer.gif\" border=\"0\" height=\"1\" width=\"1\" alt=\"\"></td>\r\n");
out.write(" \t <td width=\"1\"><img src=\"images/spacer.gif\" border=\"0\" height=\"1\" width=\"1\" alt=\"\"></td>\r\n");
out.write("\t <td width=\"5\"><img src=\"images/spacer.gif\" border=\"0\" height=\"1\" width=\"5\" alt=\"\"></td>\r\n");
out.write("\t <td width=\"83\"><span class=\"feature-dept-text\" style=\"font-size: 10px;\">\r\n");
out.write(" <img src=\"images/spacer.gif\" border=\"0\" height=\"5\" width=\"83\" alt=\"\">\r\n");
out.write(" \r\n");
out.write(" <br>Tires<br></span>\r\n");
out.write(" <span class=\"feature-dept-text\" style=\"font-size: 10px;\">\r\n");
out.write(" \r\n");
out.write(" <img src=\"images/spacer.gif\" border=\"0\" height=\"5\" width=\"83\" alt=\"\">\r\n");
out.write(" \r\n");
out.write(" <br>Valve Covers<br></span>\r\n");
out.write(" <span class=\"feature-dept-text\" style=\"font-size: 10px;\">\r\n");
out.write(" <img src=\"images/spacer.gif\" border=\"0\" height=\"5\" width=\"83\" alt=\"\">\r\n");
out.write(" \r\n");
out.write(" <br>Carborators<br>\r\n");
out.write(" </span>\r\n");
out.write(" <span class=\"feature-dept-text\" style=\"font-size: 10px;\">\r\n");
out.write(" <img src=\"images/spacer.gif\" border=\"0\" height=\"5\" width=\"83\" alt=\"\"><br>\r\n");
out.write(" Water Pumps<br>\r\n");
out.write(" </span>\r\n");
out.write(" <span class=\"feature-dept-text\" style=\"font-size: 10px;\">\r\n");
out.write(" <img src=\"images/spacer.gif\" border=\"0\" height=\"5\" width=\"83\" alt=\"\"><br>\r\n");
out.write(" Cam Shafts<br></span>\r\n");
out.write(" <span class=\"feature-dept-text\" style=\"font-size: 10px;\">\r\n");
out.write(" <img src=\"images/spacer.gif\" border=\"0\" height=\"5\" width=\"83\" alt=\"\"><br>\r\n");
out.write(" Exhaust Pipes<br></span> \r\n");
out.write("\t\t</td>\r\n");
out.write("\t<td width=\"1\"><img src=\"images/spacer.gif\" border=\"0\" height=\"1\" width=\"2\" alt=\"\"></td>\r\n");
out.write("\t</tr>\r\n");
out.write("</table>\r\n");
out.write("</td>\r\n");
out.write("</tr>\r\n");
out.write("</table>");
out.write("\t\r\n");
out.write("<!-- Featured Items Header Row -->\r\n");
out.write("<table width=\"645\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"21\">");
if (_jspx_meth_html_img_11(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" <td width=\"534\">");
if (_jspx_meth_html_img_12(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" <td width=\"1\" bgcolor=\"#9E9EFF\">");
if (_jspx_meth_html_img_13(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" <td width=\"1\" bgcolor=\"#9E9EFF\">");
if (_jspx_meth_html_img_14(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" <td width=\"90\" bgcolor=\"#9E9EFF\" align=\"right\">");
if (_jspx_meth_html_img_15(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>");
if (_jspx_meth_html_img_16(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" <td colspan=\"4\" bgcolor=\"#9E9EFF\">");
if (_jspx_meth_html_img_17(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("\r\n");
if (_jspx_meth_html_img_18(_jspx_th_html_html_0, _jspx_page_context))
return;
out.write("<br>\r\n");
out.write("\r\n");
out.write("<!-- THIS WEEK'S FEATURES -->\r\n");
out.write("<table width=\"645\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <!-- Feature Item Images -->\r\n");
out.write(" <tr>\r\n");
out.write(" <!-- Spacer for seperation -->\r\n");
out.write(" <td width=\"10\"><img src=\"images/spacer.gif\" border=\"0\" height=\"1\" width=\"10\" alt=\"\"></td>\r\n");
out.write(" \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_name_id.get(org.apache.struts.taglib.logic.IterateTag.class);
_jspx_th_logic_iterate_0.setPageContext(_jspx_page_context);
_jspx_th_logic_iterate_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_0);
_jspx_th_logic_iterate_0.setId("item");
_jspx_th_logic_iterate_0.setName("FeaturedItemsKey");
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) {
java.lang.Object item = null;
if (_jspx_eval_logic_iterate_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_logic_iterate_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_logic_iterate_0.doInitBody();
}
item = (java.lang.Object) _jspx_page_context.findAttribute("item");
do {
out.write(" \r\n");
out.write(" <td width=\"104\" align=\"center\">\r\n");
out.write(" ");
if (_jspx_meth_html_link_4(_jspx_th_logic_iterate_0, _jspx_page_context))
return;
out.write("\r\n");
out.write(" </td> \r\n");
out.write(" ");
int evalDoAfterBody = _jspx_th_logic_iterate_0.doAfterBody();
item = (java.lang.Object) _jspx_page_context.findAttribute("item");
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 = _jspx_page_context.popBody();
}
if (_jspx_th_logic_iterate_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
_jspx_tagPool_logic_iterate_name_id.reuse(_jspx_th_logic_iterate_0);
out.write("\r\n");
out.write(" \r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("\r\n");
out.write("<img src=\"images/spacer.gif\" border=\"0\" height=\"10\" width=\"\" alt=\"\"><br>\r\n");
out.write("<table width=\"645\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >\r\n");
out.write(" <!-- PRODUCT DESCRIPTION ROW -->\r\n");
out.write(" \r\n");
out.write(" <tr>\r\n");
out.write(" \r\n");
out.write(" ");
// logic:iterate
org.apache.struts.taglib.logic.IterateTag _jspx_th_logic_iterate_1 = (org.apache.struts.taglib.logic.IterateTag) _jspx_tagPool_logic_iterate_name_id.get(org.apache.struts.taglib.logic.IterateTag.class);
_jspx_th_logic_iterate_1.setPageContext(_jspx_page_context);
_jspx_th_logic_iterate_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_html_html_0);
_jspx_th_logic_iterate_1.setId("item");
_jspx_th_logic_iterate_1.setName("FeaturedItemsKey");
int _jspx_eval_logic_iterate_1 = _jspx_th_logic_iterate_1.doStartTag();
if (_jspx_eval_logic_iterate_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
java.lang.Object item = null;
if (_jspx_eval_logic_iterate_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_logic_iterate_1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_logic_iterate_1.doInitBody();
}
item = (java.lang.Object) _jspx_page_context.findAttribute("item");
do {
out.write(" \r\n");
out.write(" \r\n");
out.write(" <td width=\"21\"><img src=\"images/spacer.gif\" border=\"0\" height=\"1\" width=\"21\" alt=\"\"></td>\r\n");
out.write(" <td width=\"97\" valign=\"top\">\r\n");
out.write(" <span><b>\r\n");
out.write(" ");
if (_jspx_meth_html_link_5(_jspx_th_logic_iterate_1, _jspx_page_context))
return;
out.write("\r\n");
out.write(" \r\n");
out.write(" </b><br><br></span>\r\n");
out.write(" <b>Price: $");
if (_jspx_meth_bean_write_5(_jspx_th_logic_iterate_1, _jspx_page_context))
return;
out.write("</b><br>\r\n");
out.write(" <span class=\"feature-text\">");
if (_jspx_meth_bean_write_6(_jspx_th_logic_iterate_1, _jspx_page_context))
return;
out.write("<br></span>\t\t\t\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"1\" bgcolor=\"#999999\"><img src=\"images/spacer.gif\" border=\"0\" height=\"1\" width=\"1\" alt=\"\"></td>\r\n");
out.write(" ");
int evalDoAfterBody = _jspx_th_logic_iterate_1.doAfterBody();
item = (java.lang.Object) _jspx_page_context.findAttribute("item");
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_logic_iterate_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = _jspx_page_context.popBody();
}
if (_jspx_th_logic_iterate_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?