📄 order_0002ejsp_jsp.java
字号:
import bookshop.book.book ;
import bookshop.util.*;
import bookshop.book.allorder;
import bookshop.run.op_book;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class order_0002ejsp_jsp extends HttpJspBase {
// begin [file="/order.jsp";from=(13,0);to=(13,74)]
// end
// begin [file="/order.jsp";from=(14,0);to=(14,69)]
// end
static {
}
public order_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GB2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/order.jsp";from=(0,88);to=(2,0)]
out.write("\r\n\r\n");
// end
// HTML // begin [file="/order.jsp";from=(2,26);to=(3,0)]
out.write("\r\n");
// end
// begin [file="/order.jsp";from=(3,2);to=(8,0)]
String username = (String)session.getAttribute("username");
if ( username == null || username.equals("") ){
response.sendRedirect("login.jsp?msg=nologin");
}
// end
// HTML // begin [file="/order.jsp";from=(8,2);to=(9,0)]
out.write("\r\n");
// end
// HTML // begin [file="/order.jsp";from=(9,39);to=(10,0)]
out.write("\r\n");
// end
// HTML // begin [file="/order.jsp";from=(10,36);to=(11,0)]
out.write("\r\n");
// end
// HTML // begin [file="/order.jsp";from=(11,43);to=(12,0)]
out.write("\r\n");
// end
// HTML // begin [file="/order.jsp";from=(12,41);to=(13,0)]
out.write("\r\n");
// end
// begin [file="/order.jsp";from=(13,0);to=(13,74)]
bookshop.run.op_buy myIndentlist = null;
boolean _jspx_specialmyIndentlist = false;
synchronized (pageContext) {
myIndentlist= (bookshop.run.op_buy)
pageContext.getAttribute("myIndentlist",PageContext.PAGE_SCOPE);
if ( myIndentlist == null ) {
_jspx_specialmyIndentlist = true;
try {
myIndentlist = (bookshop.run.op_buy) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "bookshop.run.op_buy");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"bookshop.run.op_buy", exc);
}
pageContext.setAttribute("myIndentlist", myIndentlist, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialmyIndentlist == true) {
// end
// begin [file="/order.jsp";from=(13,0);to=(13,74)]
}
// end
// HTML // begin [file="/order.jsp";from=(13,74);to=(14,0)]
out.write("\r\n");
// end
// begin [file="/order.jsp";from=(14,0);to=(14,69)]
bookshop.run.op_book mybook = null;
boolean _jspx_specialmybook = false;
synchronized (pageContext) {
mybook= (bookshop.run.op_book)
pageContext.getAttribute("mybook",PageContext.PAGE_SCOPE);
if ( mybook == null ) {
_jspx_specialmybook = true;
try {
mybook = (bookshop.run.op_book) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "bookshop.run.op_book");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"bookshop.run.op_book", exc);
}
pageContext.setAttribute("mybook", mybook, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialmybook == true) {
// end
// begin [file="/order.jsp";from=(14,0);to=(14,69)]
}
// end
// HTML // begin [file="/order.jsp";from=(14,69);to=(15,0)]
out.write("\r\n");
// end
// begin [file="/order.jsp";from=(15,2);to=(32,0)]
String mesg = "";
long Id=0;
String indentNo = request.getParameter("orderno");
if( (indentNo==null)|| indentNo.equals("")) {
mesg = "你要查看的订单清单不存在!";
} else {
try {
Id = Long.parseLong(request.getParameter("id"));
if (!myIndentlist.getAllorder(indentNo)){
mesg = "你要查看的订单清单不存在!";
}
} catch (Exception e){
mesg = "你要查看的订单清单不存在!";
}
}
// end
// HTML // begin [file="/order.jsp";from=(32,2);to=(45,2)]
out.write("\r\n\r\n<html>\r\n<head>\r\n<title>隽隽电子书店 查看订购清单资料</title>\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"books.css\" type=\"text/css\">\r\n</head>\r\n\r\n<body bgcolor=\"#FFCC99\" text=\"#000000\" onload=\"javascript:window.focus();\" >\r\n<div align=\"center\">\r\n\r\n ");
// end
// begin [file="/order.jsp";from=(45,4);to=(48,1)]
if(!mesg.equals("")){
out.println(mesg);
} else {
// end
// HTML // begin [file="/order.jsp";from=(48,3);to=(49,13)]
out.write("\r\n\t\t<p>隽隽书店图书订单");
// end
// begin [file="/order.jsp";from=(49,16);to=(49,26)]
out.print( indentNo );
// end
// HTML // begin [file="/order.jsp";from=(49,28);to=(58,1)]
out.write(" 清单:</p>\r\n <table width=\"95%\" border=\"1\" cellspacing=\"1\" cellpadding=\"1\" bordercolor=\"#CC9966\">\r\n <tr align=\"center\">\r\n <td>图书名称</td>\r\n <td>作者</td>\r\n <td>图书类别</td>\r\n <td>单价(元)</td>\r\n <td>数量</td>\r\n </tr>\r\n\t");
// end
// begin [file="/order.jsp";from=(58,3);to=(64,1)]
for (int i=0; i<myIndentlist.getOrder_list().size();i++){
allorder idList = (allorder) myIndentlist.getOrder_list().elementAt(i);
//out.print(idList.getBookNo());
if (mybook.getOnebook((int)idList.getBookNo()) ){
book bk = (book) mybook.getBooklist().elementAt(0);
// end
// HTML // begin [file="/order.jsp";from=(64,3);to=(66,16)]
out.write("\r\n\t <tr align=\"center\">\r\n <td>");
// end
// begin [file="/order.jsp";from=(66,19);to=(66,37)]
out.print( bk.getBookName() );
// end
// HTML // begin [file="/order.jsp";from=(66,39);to=(67,16)]
out.write("</td>\r\n <td>");
// end
// begin [file="/order.jsp";from=(67,19);to=(67,35)]
out.print( bk.getAuthor() );
// end
// HTML // begin [file="/order.jsp";from=(67,37);to=(68,16)]
out.write("</td>\r\n <td>");
// end
// begin [file="/order.jsp";from=(68,19);to=(68,38)]
out.print( bk.getClassname() );
// end
// HTML // begin [file="/order.jsp";from=(68,40);to=(69,16)]
out.write("</td>\r\n <td>");
// end
// begin [file="/order.jsp";from=(69,19);to=(69,35)]
out.print( bk.getPrince() );
// end
// HTML // begin [file="/order.jsp";from=(69,37);to=(70,16)]
out.write("</td>\r\n <td>");
// end
// begin [file="/order.jsp";from=(70,19);to=(70,39)]
out.print( idList.getAmount() );
// end
// HTML // begin [file="/order.jsp";from=(70,41);to=(72,1)]
out.write("</td>\r\n </tr>\r\n\t");
// end
// begin [file="/order.jsp";from=(72,3);to=(74,2)]
}
}
// end
// HTML // begin [file="/order.jsp";from=(74,4);to=(76,0)]
out.write("\r\n\t\t</table>\r\n");
// end
// begin [file="/order.jsp";from=(76,2);to=(76,5)]
}
// end
// HTML // begin [file="/order.jsp";from=(76,7);to=(89,0)]
out.write("\r\n <br><p><a href=\"javascript:window.close()\">关闭窗口</a></p>\r\n <table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">\r\n <tr>\r\n <td align=\"center\">隽隽书店版权所有<br>\r\n CopyRight@2003 <br>\r\n Email:<a href=\"mailto:wxy8108123@163.com\">wxy8108123@163.com</a></td>\r\n </tr>\r\n </table>\r\n\r\n</div>\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 + -