?? purchase_jsp.java
字號:
package org.apache.jsp.view;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import bit.jeffy.business.Purchase;
public final class purchase_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(4);
_jspx_dependants.add("/WEB-INF/struts-bean.tld");
_jspx_dependants.add("/WEB-INF/struts-html.tld");
_jspx_dependants.add("/WEB-INF/struts-logic.tld");
_jspx_dependants.add("/view/head.jsp");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_link_page;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_errors_nobody;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_html_link_page = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_html_errors_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_html_link_page.release();
_jspx_tagPool_html_errors_nobody.release();
}
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;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head>\r\n");
out.write(" <!--\r\n");
out.write(" <link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n");
out.write(" -->\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write(" <table width=\"100%\" height=\"223\" border=\"1\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td>");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<body>\r\n");
out.write(" <table width=\"100%\" height=\"125\" border=\"0\" cellspacint=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"57\" align=\"center\"><table width=\"56%\" height=\"46\" border=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" bgcolor=\"#0099FF\">\r\n");
out.write(" 歡迎你,親愛的\r\n");
out.write(" ");
String username = (String)session.getAttribute("curr_user");
out.write("\r\n");
out.write(" ");
out.print(username);
out.write("\r\n");
out.write(" 用戶!\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"25\" align=\"center\" bgcolor=\"#999999\"><table width=\"92%\" border=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr align=\"center\">\r\n");
out.write(" <td width=\"10%\">");
if (_jspx_meth_html_link_0(_jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" <td width=\"30%\">");
if (_jspx_meth_html_link_1(_jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" <td width=\"10%\">");
if (_jspx_meth_html_link_2(_jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" <td width=\"40%\">");
if (_jspx_meth_html_link_3(_jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" <td width=\"10%\"><a href=\"/OrderTickets/index.jsp\" onClick=\"exit()\">退出</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"25\"><hr></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
out.write("<script>\r\n");
out.write("function exit()\r\n");
out.write("{\r\n");
out.write(" window.close();\r\n");
out.write("}\r\n");
out.write("</script>");
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"388\" valign=\"top\" align=\"center\">\r\n");
out.write("\t ");
String path = (String)session.getAttribute("path");
if(path == null){
out.print("讀取數據庫失敗");
}else{
ApplicationContext context =
new FileSystemXmlApplicationContext(path);
Purchase purchase = (Purchase)context.getBean("purchase");
purchase.list(request,out);
}
out.write("\r\n");
out.write("\t </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td>");
if (_jspx_meth_html_errors_0(_jspx_page_context))
return;
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </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);
}
}
private boolean _jspx_meth_html_link_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// html:link
org.apache.struts.taglib.html.LinkTag _jspx_th_html_link_0 = (org.apache.struts.taglib.html.LinkTag) _jspx_tagPool_html_link_page.get(org.apache.struts.taglib.html.LinkTag.class);
_jspx_th_html_link_0.setPageContext(_jspx_page_context);
_jspx_th_html_link_0.setParent(null);
_jspx_th_html_link_0.setPage("/index.jsp");
int _jspx_eval_html_link_0 = _jspx_th_html_link_0.doStartTag();
if (_jspx_eval_html_link_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_html_link_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_html_link_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_html_link_0.doInitBody();
}
do {
out.write('首');
out.write('頁');
int evalDoAfterBody = _jspx_th_html_link_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_html_link_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = _jspx_page_context.popBody();
}
if (_jspx_th_html_link_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_html_link_page.reuse(_jspx_th_html_link_0);
return false;
}
private boolean _jspx_meth_html_link_1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// html:link
org.apache.struts.taglib.html.LinkTag _jspx_th_html_link_1 = (org.apache.struts.taglib.html.LinkTag) _jspx_tagPool_html_link_page.get(org.apache.struts.taglib.html.LinkTag.class);
_jspx_th_html_link_1.setPageContext(_jspx_page_context);
_jspx_th_html_link_1.setParent(null);
_jspx_th_html_link_1.setPage("/view/PersonInfo.jsp");
int _jspx_eval_html_link_1 = _jspx_th_html_link_1.doStartTag();
if (_jspx_eval_html_link_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_html_link_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_html_link_1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_html_link_1.doInitBody();
}
do {
out.write("個人信息管理");
int evalDoAfterBody = _jspx_th_html_link_1.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_html_link_1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = _jspx_page_context.popBody();
}
if (_jspx_th_html_link_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_html_link_page.reuse(_jspx_th_html_link_1);
return false;
}
private boolean _jspx_meth_html_link_2(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// html:link
org.apache.struts.taglib.html.LinkTag _jspx_th_html_link_2 = (org.apache.struts.taglib.html.LinkTag) _jspx_tagPool_html_link_page.get(org.apache.struts.taglib.html.LinkTag.class);
_jspx_th_html_link_2.setPageContext(_jspx_page_context);
_jspx_th_html_link_2.setParent(null);
_jspx_th_html_link_2.setPage("/view/purchase.jsp");
int _jspx_eval_html_link_2 = _jspx_th_html_link_2.doStartTag();
if (_jspx_eval_html_link_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_html_link_2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_html_link_2.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_html_link_2.doInitBody();
}
do {
out.write('訂');
out.write('票');
int evalDoAfterBody = _jspx_th_html_link_2.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_html_link_2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = _jspx_page_context.popBody();
}
if (_jspx_th_html_link_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_html_link_page.reuse(_jspx_th_html_link_2);
return false;
}
private boolean _jspx_meth_html_link_3(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// html:link
org.apache.struts.taglib.html.LinkTag _jspx_th_html_link_3 = (org.apache.struts.taglib.html.LinkTag) _jspx_tagPool_html_link_page.get(org.apache.struts.taglib.html.LinkTag.class);
_jspx_th_html_link_3.setPageContext(_jspx_page_context);
_jspx_th_html_link_3.setParent(null);
_jspx_th_html_link_3.setPage("/view/shoppingcar.jsp");
int _jspx_eval_html_link_3 = _jspx_th_html_link_3.doStartTag();
if (_jspx_eval_html_link_3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_html_link_3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_html_link_3.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_html_link_3.doInitBody();
}
do {
out.write("查看個人購物車");
int evalDoAfterBody = _jspx_th_html_link_3.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_html_link_3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = _jspx_page_context.popBody();
}
if (_jspx_th_html_link_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_html_link_page.reuse(_jspx_th_html_link_3);
return false;
}
private boolean _jspx_meth_html_errors_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// html:errors
org.apache.struts.taglib.html.ErrorsTag _jspx_th_html_errors_0 = (org.apache.struts.taglib.html.ErrorsTag) _jspx_tagPool_html_errors_nobody.get(org.apache.struts.taglib.html.ErrorsTag.class);
_jspx_th_html_errors_0.setPageContext(_jspx_page_context);
_jspx_th_html_errors_0.setParent(null);
int _jspx_eval_html_errors_0 = _jspx_th_html_errors_0.doStartTag();
if (_jspx_th_html_errors_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_html_errors_nobody.reuse(_jspx_th_html_errors_0);
return false;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -