📄 inquire_0002ejsp_jsp.java
字号:
String author =convert((String)request.getParameter("bookname"));
if(author==null){author="";}
Collection c = bookDB.getBooksAuthor(author);
Iterator i = c.iterator();
while (i.hasNext()) {
BookDetails book = (BookDetails)i.next();
if(book==null)
{
// end
// HTML // begin [file="/Inquire.jsp";from=(52,2);to=(53,47)]
out.write("\r\n <p>对不起,没有您要找的书<<<font size=\"3\" color=\"red\">");
// end
// begin [file="/Inquire.jsp";from=(53,50);to=(53,70)]
out.print(book.getBook_name() );
// end
// HTML // begin [file="/Inquire.jsp";from=(53,72);to=(54,14)]
out.write("</font>>>!!<p>\r\n<form action=\"");
// end
// begin [file="/Inquire.jsp";from=(54,17);to=(54,41)]
out.print(request.getContextPath());
// end
// HTML // begin [file="/Inquire.jsp";from=(54,43);to=(55,0)]
out.write("/catalog.jsp\" method=\"post\"><input type=\"image\" src=\"images//goonbuy.gif\"></form>\r\n");
// end
// begin [file="/Inquire.jsp";from=(55,2);to=(58,0)]
return;
}
// end
// HTML // begin [file="/Inquire.jsp";from=(58,2);to=(59,17)]
out.write("\r\n<tr><td><a href=\"");
// end
// begin [file="/Inquire.jsp";from=(59,20);to=(59,44)]
out.print(request.getContextPath());
// end
// HTML // begin [file="/Inquire.jsp";from=(59,46);to=(59,72)]
out.write("/bookdetails.jsp?bookname=");
// end
// begin [file="/Inquire.jsp";from=(59,75);to=(59,94)]
out.print(book.getBook_name());
// end
// HTML // begin [file="/Inquire.jsp";from=(59,96);to=(59,113)]
out.write("\" target=\"blank\">");
// end
// begin [file="/Inquire.jsp";from=(59,116);to=(59,143)]
out.print((String)book.getBook_name());
// end
// HTML // begin [file="/Inquire.jsp";from=(59,145);to=(60,4)]
out.write("</a></td>\r\n<td>");
// end
// begin [file="/Inquire.jsp";from=(60,7);to=(60,31)]
out.print((String)book.getAuthor());
// end
// HTML // begin [file="/Inquire.jsp";from=(60,33);to=(61,4)]
out.write("</td>\r\n<td>");
// end
// begin [file="/Inquire.jsp";from=(61,7);to=(61,24)]
out.print(book.getT_value());
// end
// HTML // begin [file="/Inquire.jsp";from=(61,26);to=(62,33)]
out.write("</td>\r\n<td><form target=\"blank\" action=\"");
// end
// begin [file="/Inquire.jsp";from=(62,36);to=(62,60)]
out.print(request.getContextPath());
// end
// HTML // begin [file="/Inquire.jsp";from=(62,62);to=(62,88)]
out.write("/bookdetails.jsp?bookname=");
// end
// begin [file="/Inquire.jsp";from=(62,91);to=(62,110)]
out.print(book.getBook_name());
// end
// HTML // begin [file="/Inquire.jsp";from=(62,112);to=(63,13)]
out.write("\" method=\"post\"><input type=\"image\" src=\"images\\\\view.gif\" name=\"view\"></form></td>\r\n<td><a href=\"");
// end
// begin [file="/Inquire.jsp";from=(63,16);to=(63,40)]
out.print(request.getContextPath());
// end
// HTML // begin [file="/Inquire.jsp";from=(63,42);to=(63,59)]
out.write("/catalog.jsp?Add=");
// end
// begin [file="/Inquire.jsp";from=(63,62);to=(63,81)]
out.print(book.getBook_name());
// end
// HTML // begin [file="/Inquire.jsp";from=(63,83);to=(64,0)]
out.write("\"><font color=\"#12bb00\">放入购物车</font></a><td></tr>\r\n");
// end
// begin [file="/Inquire.jsp";from=(64,2);to=(76,0)]
}
}
else if(inquireType.equals("出版社")) {
String publishing_house =convert((String)request.getParameter("bookname"));
if(publishing_house==null){publishing_house="电子工业出版社";}
Collection c = bookDB.getBooksPublishing(publishing_house);
Iterator i = c.iterator();
while (i.hasNext()) {
BookDetails book = (BookDetails)i.next();
if(book.equals(""))
{
// end
// HTML // begin [file="/Inquire.jsp";from=(76,2);to=(77,47)]
out.write("\r\n <p>对不起,没有您要找的书<<<font size=\"3\" color=\"red\">");
// end
// begin [file="/Inquire.jsp";from=(77,50);to=(77,70)]
out.print(book.getBook_name() );
// end
// HTML // begin [file="/Inquire.jsp";from=(77,72);to=(78,14)]
out.write("</font>>>!!<p>\r\n<form action=\"");
// end
// begin [file="/Inquire.jsp";from=(78,17);to=(78,41)]
out.print(request.getContextPath());
// end
// HTML // begin [file="/Inquire.jsp";from=(78,43);to=(79,0)]
out.write("/catalog.jsp\" method=\"post\"><input type=\"image\" src=\"images//goonbuy.gif\"></form>\r\n");
// end
// begin [file="/Inquire.jsp";from=(79,2);to=(82,0)]
return;
}
// end
// HTML // begin [file="/Inquire.jsp";from=(82,2);to=(83,17)]
out.write("\r\n<tr><td><a href=\"");
// end
// begin [file="/Inquire.jsp";from=(83,20);to=(83,44)]
out.print(request.getContextPath());
// end
// HTML // begin [file="/Inquire.jsp";from=(83,46);to=(83,72)]
out.write("/bookdetails.jsp?bookname=");
// end
// begin [file="/Inquire.jsp";from=(83,75);to=(83,94)]
out.print(book.getBook_name());
// end
// HTML // begin [file="/Inquire.jsp";from=(83,96);to=(83,98)]
out.write("\">");
// end
// begin [file="/Inquire.jsp";from=(83,101);to=(83,128)]
out.print((String)book.getBook_name());
// end
// HTML // begin [file="/Inquire.jsp";from=(83,130);to=(84,4)]
out.write("</a></td>\r\n<td>");
// end
// begin [file="/Inquire.jsp";from=(84,7);to=(84,31)]
out.print((String)book.getAuthor());
// end
// HTML // begin [file="/Inquire.jsp";from=(84,33);to=(85,4)]
out.write("</td>\r\n<td>");
// end
// begin [file="/Inquire.jsp";from=(85,7);to=(85,24)]
out.print(book.getT_value());
// end
// HTML // begin [file="/Inquire.jsp";from=(85,26);to=(86,18)]
out.write("</td>\r\n<td><form action=\"");
// end
// begin [file="/Inquire.jsp";from=(86,21);to=(86,45)]
out.print(request.getContextPath());
// end
// HTML // begin [file="/Inquire.jsp";from=(86,47);to=(86,73)]
out.write("/bookdetails.jsp?bookname=");
// end
// begin [file="/Inquire.jsp";from=(86,76);to=(86,95)]
out.print(book.getBook_name());
// end
// HTML // begin [file="/Inquire.jsp";from=(86,97);to=(87,13)]
out.write("\" method=\"post\"><input type=\"image\" src=\"images\\\\view.gif\" name=\"view\"></form></td>\r\n<td><a href=\"");
// end
// begin [file="/Inquire.jsp";from=(87,16);to=(87,40)]
out.print(request.getContextPath());
// end
// HTML // begin [file="/Inquire.jsp";from=(87,42);to=(87,59)]
out.write("/catalog.jsp?Add=");
// end
// begin [file="/Inquire.jsp";from=(87,62);to=(87,81)]
out.print(book.getBook_name());
// end
// HTML // begin [file="/Inquire.jsp";from=(87,83);to=(88,0)]
out.write("\"><font color=\"#12bb00\">放入购物车</font></a><td></tr>\r\n");
// end
// begin [file="/Inquire.jsp";from=(88,2);to=(90,0)]
}
// end
// HTML // begin [file="/Inquire.jsp";from=(90,2);to=(91,0)]
out.write("\r\n");
// end
// begin [file="/Inquire.jsp";from=(91,2);to=(93,0)]
}
// end
// HTML // begin [file="/Inquire.jsp";from=(93,2);to=(104,0)]
out.write("\r\n</table>\r\n<br></br>\r\n \r\n \r\n \r\n \r\n\r\n<a href=\"RightBar.jsp\"><font size=\"4\" color=\"#12bb00\">返回</font></a>\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 + -