📄 booksort_0002ejsp_jsp.java
字号:
// HTML // begin [file="/BookSort.jsp";from=(30,30);to=(47,4)]
out.write("\r\n\t<table width=\"100%\" height=\"330\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"26%\" valign=\"top\">\r\n\t\t <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td height=\"40\" align=\"center\"> </td>\r\n <td height=\"40\" align=\"center\" background=\"Images/bg_booksort.gif\"><table width=\"100%\" height=\"26\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"29%\" align=\"right\" class=\"word_white\"><img src=\"Images/ico_booksort.gif\" width=\"25\" height=\"25\"></td>\r\n <td width=\"71%\" class=\"word_white\"> 图书分类列表</td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n <tr>\r\n <td width=\"20\" height=\"31\"> </td>\r\n <td width=\"182\" height=\"31\">\r\n\t\t\t\t");
// end
// begin [file="/BookSort.jsp";from=(47,6);to=(50,4)]
rs_Type.first();
do{ //此处必须用do...while,否则会少一条记录
String Type=rs_Type.getString("Type");
// end
// HTML // begin [file="/BookSort.jsp";from=(50,6);to=(54,75)]
out.write("\r\n\t\t\t\t<table width=\"100%\" height=\"22\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tableBorder_B1\">\r\n <tr>\r\n <td width=\"16%\" align=\"right\"><img src=\"Images/boardlist.gif\" width=\"25\" height=\"14\"></td>\r\n <td width=\"84%\" height=\"26\"><a href=\"BookSort.jsp?Type=");
// end
// begin [file="/BookSort.jsp";from=(54,78);to=(54,82)]
out.print(Type);
// end
// HTML // begin [file="/BookSort.jsp";from=(54,84);to=(54,92)]
out.write("\"> ");
// end
// begin [file="/BookSort.jsp";from=(54,95);to=(54,99)]
out.print(Type);
// end
// HTML // begin [file="/BookSort.jsp";from=(54,101);to=(57,4)]
out.write("</a></td>\r\n </tr>\r\n </table>\r\n\t\t\t\t");
// end
// begin [file="/BookSort.jsp";from=(57,6);to=(57,30)]
}while (rs_Type.next());
// end
// HTML // begin [file="/BookSort.jsp";from=(57,32);to=(66,5)]
out.write("\r\n\t\t\t\t</td>\r\n </tr>\r\n </table>\r\n\t\t</td>\r\n <td width=\"5\" valign=\"top\" background=\"Images/Cen_separate.gif\"></td>\r\n <td width=\"73%\" valign=\"top\"><table width=\"100%\" height=\"272\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td height=\"52\" colspan=\"3\" background=\"Images/index_10.gif\">\r\n\t\t\t ");
// end
// begin [file="/BookSort.jsp";from=(66,5);to=(66,37)]
{
String _jspx_qStr = "";
JspRuntimeLibrary.include(request, response, "search.jsp" + _jspx_qStr, out, false);
if ("true".equals(request.getAttribute("javax.servlet.forward.seen")))
return;
}
// end
// HTML // begin [file="/BookSort.jsp";from=(66,37);to=(76,55)]
out.write("\r\n </td>\r\n </tr>\r\n <tr>\r\n <td width=\"97%\" height=\"220\" valign=\"top\">\r\n\t\t\t <table width=\"100%\" height=\"126\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n\r\n\t\t\t <tr>\r\n <td valign=\"top\"><table width=\"100%\" height=\"55\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td class=\"tableBorder_B\">图书类别:[ ");
// end
// begin [file="/BookSort.jsp";from=(76,58);to=(76,63)]
out.print(PType);
// end
// HTML // begin [file="/BookSort.jsp";from=(76,65);to=(88,24)]
out.write(" ]</td>\r\n </tr>\r\n <tr>\r\n <td width=\"86%\" height=\"100\" valign=\"top\">\r\n <table width=\"96%\" height=\"34\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tableBorder_B\">\r\n <tr>\r\n <td width=\"6%\" height=\"33\" align=\"center\"> </td>\r\n <td width=\"48%\" style=\"padding:5px;\">书名</td>\r\n <td width=\"35%\" style=\"padding:5px;\">出版社</td>\r\n <td width=\"11%\" style=\"padding:5px;\">购买</td>\r\n </tr>\r\n </table>\r\n ");
// end
// begin [file="/BookSort.jsp";from=(88,26);to=(92,5)]
while(rs_book.next()){
String ISBN=rs_book.getString("ISBN");
String BookName=rs_book.getString("BookName");
String publisher=rs_book.getString("publisher");
// end
// HTML // begin [file="/BookSort.jsp";from=(92,7);to=(96,95)]
out.write("\r\n <table width=\"96%\" height=\"21\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"tableBorder_B\">\r\n <tr>\r\n <td width=\"6%\" align=\"center\"><img src=\"Images/greendot.gif\" width=\"11\" height=\"13\"></td>\r\n <td width=\"48%\" style=\"padding:5px;\"><a href=\"book_detail.jsp?ISBN=");
// end
// begin [file="/BookSort.jsp";from=(96,98);to=(96,102)]
out.print(ISBN);
// end
// HTML // begin [file="/BookSort.jsp";from=(96,104);to=(96,106)]
out.write("\">");
// end
// begin [file="/BookSort.jsp";from=(96,109);to=(96,117)]
out.print(BookName);
// end
// HTML // begin [file="/BookSort.jsp";from=(96,119);to=(97,65)]
out.write("</a></td>\r\n <td width=\"35%\" style=\"padding:5px;\">");
// end
// begin [file="/BookSort.jsp";from=(97,68);to=(97,77)]
out.print(publisher);
// end
// HTML // begin [file="/BookSort.jsp";from=(97,79);to=(99,7)]
out.write("</td>\r\n <td width=\"11%\" style=\"padding:5px;\">\r\n\t\t\t\t\t\t\t");
// end
// begin [file="/BookSort.jsp";from=(99,9);to=(99,52)]
if(session.getAttribute("UserName")!=null){
// end
// HTML // begin [file="/BookSort.jsp";from=(99,54);to=(100,120)]
out.write("\r\n\t\t\t\t\t\t\t<input name=\"Submit5\" type=\"submit\" class=\"btn_grey\" value=\"购买\" onClick=\"window.location.href='cart_Add.jsp?ISBN=");
// end
// begin [file="/BookSort.jsp";from=(100,123);to=(100,127)]
out.print(ISBN);
// end
// HTML // begin [file="/BookSort.jsp";from=(100,129);to=(101,7)]
out.write("'\">\r\n\t\t\t\t\t\t\t");
// end
// begin [file="/BookSort.jsp";from=(101,9);to=(103,8)]
}else{
out.println("请先登录");
}
// end
// HTML // begin [file="/BookSort.jsp";from=(103,10);to=(107,24)]
out.write("\r\n\t\t\t\t\t\t\t</td>\r\n </tr>\r\n </table>\r\n ");
// end
// begin [file="/BookSort.jsp";from=(107,26);to=(107,27)]
}
// end
// HTML // begin [file="/BookSort.jsp";from=(107,29);to=(119,6)]
out.write("\r\n </td>\r\n </tr>\r\n </table></td>\r\n\t\t\t </tr>\r\n </table>\r\n\t\t\t\t\t </td>\r\n <td width=\"3%\" valign=\"top\"> </td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n </table>\r\n ");
// end
// begin [file="/BookSort.jsp";from=(119,6);to=(119,41)]
{
String _jspx_qStr = "";
JspRuntimeLibrary.include(request, response, "copyright.jsp" + _jspx_qStr, out, false);
if ("true".equals(request.getAttribute("javax.servlet.forward.seen")))
return;
}
// end
// HTML // begin [file="/BookSort.jsp";from=(119,41);to=(128,0)]
out.write("\r\n </td>\r\n </tr>\r\n</table>\r\n</td>\r\n </tr>\r\n</table>\r\n</body>\r\n</html>\r\n");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -