📄 __userinfo.java
字号:
/* compiled from JSP: /userinfo.jsp
*
* This code was automatically generated at 14:23:30 on 2004-3-2
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*/
package jsp_servlet;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
// User imports
import org.pan.web.book.indent; //[ /userinfo.jsp; Line: 12]
// built-in init parameters:
// boolean _verbose -- wants debugging
// Well-known variables:
// JspWriter out -- to write to the browser
// HttpServletRequest request -- the request object.
// HttpServletResponse response -- the response object.
// PageContext pageContext -- the page context for this JSP
// HttpSession session -- the session object for the client (if any)
// ServletContext application -- The servlet (application) context
// ServletConfig config -- The ServletConfig for this JSP
// Object page -- the instance of this page's implementation class (i.e., 'this')
/**
* This code was automatically generated at 14:23:30 on 2004-3-2
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __userinfo
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
// StaleIndicator interface public boolean _isStale() { weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext()); java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/userinfo.jsp", 1046050544000L, "7.0.1.0")) return true; return false; } public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) { java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/userinfo.jsp", 1046050544000L, "7.0.1.0")) return true; return false; }
public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
{
// declare and set well-known variables:
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.ServletContext application = config.getServletContext();
javax.servlet.jsp.tagext.Tag _activeTag = null;
// variables for Tag extension protocol
Object page = this;
javax.servlet.jsp.JspWriter out;
javax.servlet.jsp.PageContext pageContext = javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
response.setHeader("Content-Type", "text/html; charset=gb2312"); out = pageContext.getOut(); JspWriter _originalOut = out;
javax.servlet.http.HttpSession session = request.getSession(true);
try { // error page try block response.setContentType("text/html; charset=gb2312"); out.print("\r\n\r\n"); //[ /userinfo.jsp; Line: 3] //[ /userinfo.jsp; Line: 4] String username = (String)session.getAttribute("username"); //[ /userinfo.jsp; Line: 5] if ( username == null || username.equals("") ){ //[ /userinfo.jsp; Line: 6] response.sendRedirect("login.jsp?msg=nologin"); //[ /userinfo.jsp; Line: 7] } //[ /userinfo.jsp; Line: 8] //[ /userinfo.jsp; Line: 9] out.print("\r\n\r\n"); out.print("\r\n"); org.pan.web.purchase my_indent = null; //[ /userinfo.jsp; Line: 13] my_indent = (org.pan.web.purchase)pageContext.getAttribute("my_indent"); //[ /userinfo.jsp; Line: 13] if (my_indent == null) { // begin 'my_indent' instantiation block... //[ /userinfo.jsp; Line: 13] { // Don't need to synchronize on page scope //[ /userinfo.jsp; Line: 13] my_indent = (org.pan.web.purchase)pageContext.getAttribute("my_indent"); //[ /userinfo.jsp; Line: 13] if (my_indent == null) { // begin 'my_indent' synchronized instantiation block... //[ /userinfo.jsp; Line: 13] my_indent = new org.pan.web.purchase(); //[ /userinfo.jsp; Line: 13] pageContext.setAttribute("my_indent", my_indent); //[ /userinfo.jsp; Line: 13] } // end synchronized bean instantiation block... //[ /userinfo.jsp; Line: 13] } // end synchronized bean scope block... //[ /userinfo.jsp; Line: 13] } // end bean instantiation block... //[ /userinfo.jsp; Line: 13] out.print("\r\n\r\n"); //[ /userinfo.jsp; Line: 15] String mesg = ""; //[ /userinfo.jsp; Line: 16] String Uid = (String) session.getAttribute("userid"); //[ /userinfo.jsp; Line: 17] long uid = 0; //[ /userinfo.jsp; Line: 18] try { //[ /userinfo.jsp; Line: 19] uid = Long.parseLong(Uid); //[ /userinfo.jsp; Line: 20] } catch (Exception e) { //[ /userinfo.jsp; Line: 21] uid =0; //[ /userinfo.jsp; Line: 22] mesg = "出现不可预知错误!"; //[ /userinfo.jsp; Line: 23] } //[ /userinfo.jsp; Line: 24] if (!my_indent.getIndent(uid)) //[ /userinfo.jsp; Line: 25] mesg = "你在本站还没有购买过图书。" ; //[ /userinfo.jsp; Line: 26] out.print("\r\n\r\n<html>\r\n<head>\r\n<title>好易多网络电子书店 个人信息</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<script language=\"javascript\">\r\n\r\nfunction openScript(url,name, width, height){\r\n\tvar Win = window.open(url,name,\'width=\' + width + \',height=\' + height + \',resizable=1,scrollbars=yes,menubar=no,status=yes\' );\r\n}\r\n\r\n</script>\r\n<link rel=\"stylesheet\" href=\"books.css\" type=\"text/css\">\r\n</head>\r\n\r\n<body bgcolor=\"#FFCC99\" text=\"#000000\">\r\n<div align=\"center\">\r\n <table width=\"750\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n <tr> \r\n <td width=\"120\" align=\"center\"><img src=\"images/Img20625.jpg\" width=\"50\" height=\"50\"><br>\r\n <font color=\"#0066CC\">好易多书店</font></td>\r\n <td align=\"center\"><img src=\"images/baners2.gif\" width=\"468\" height=\"60\"></td>\r\n <td align=\"center\" width=\"80\"><a href=\"#\">本站公告</a><br>\r\n <br>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n <table width=\"750\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n <tr> \r\n <td width=\"200\"> </td>\r\n <td "); out.print("width=\"55\"><a href=\"index.jsp\">首页</a></td>\r\n <td width=\"100\"><a href=\"booklist.jsp\">在线购物</a></td>\r\n <td width=\"100\"><a href=\"shoperlist.jsp\">我的购物车</a></td>\r\n <td width=\"100\"><a href=\"userinfo.jsp\">用户信息</a></td>\r\n <td> </td>\r\n </tr>\r\n </table>\r\n <br>\r\n <table width=\"750\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n <tr valign=\"top\"> \r\n <td width=\"186\" align=\"center\"> \r\n <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n <tr> \r\n <td width=\"20\"> </td>\r\n <td><img src=\"images/baobei%5B1%5D.gif\" width=\"120\" height=\"60\"></td>\r\n </tr>\r\n\r\n <tr> \r\n <td width=\"20\"> </td>\r\n <td><a href=\"userinfo.jsp\">查看订单情况</a></td>\r\n </tr>\r\n <tr> \r\n <td width=\"20\"> </td>\r\n <td><a href=\"modimy.jsp\">修改个人信息</a></td>\r\n </tr>\r\n <tr>\r\n <td width=\"20\"> </td>\r\n <td><a href=\"shoperlist.jsp\">查看我的购物车</a></td>\r\n "); out.print(" </tr>\r\n </table>\r\n <p><img src=\"images/v3_sun_logo.gif\" width=\"64\" height=\"28\"></p>\r\n <p> </p>\r\n </td>\r\n <td align=\"center\"> \r\n <p><br>\r\n <font color=\"#33FFCC\"><b><font color=\"#0000FF\">您的订单信息</font></b></font></p>\r\n"); if (!mesg.equals("")) { //[ /userinfo.jsp; Line: 95] out.println("<p><font color=red>" + mesg + "</font></p>"); //[ /userinfo.jsp; Line: 96] } else { //[ /userinfo.jsp; Line: 97] //[ /userinfo.jsp; Line: 97] out.print("\r\n <table width=\"95%\" border=\"1\" cellspacing=\"2\" cellpadding=\"1\" bordercolor=\"#0066CC\">\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 <td>详情</td>\r\n </tr>\r\n\t"); for (int i = 0; i<my_indent.getMy_indent().size();i++){ //[ /userinfo.jsp; Line: 107] indent Ident = (indent) my_indent.getMy_indent().elementAt(i); //[ /userinfo.jsp; Line: 108] //[ /userinfo.jsp; Line: 109] //[ /userinfo.jsp; Line: 109] out.print("\r\n <tr> \r\n <td><font color=red>"); out.print(String.valueOf(Ident.getIndentNo() )); //[ /userinfo.jsp; Line: 111] out.print("</font></td>\r\n <td align=\"center\">"); out.print(String.valueOf( Ident.getSubmitTime() )); //[ /userinfo.jsp; Line: 112] out.print("</td>\r\n <td align=\"center\">"); out.print(String.valueOf( Ident.getTotalPrice() )); //[ /userinfo.jsp; Line: 113] out.print("</td>\r\n <td align=\"center\">\r\n\t\t\t"); if (Ident.getIsPayoff() ) //[ /userinfo.jsp; Line: 115] out.print("已付清"); //[ /userinfo.jsp; Line: 116] else //[ /userinfo.jsp; Line: 117] out.print("未付"); //[ /userinfo.jsp; Line: 118] //[ /userinfo.jsp; Line: 119] //[ /userinfo.jsp; Line: 119] out.print("</td>\r\n <td align=\"center\">\r\n\t\t\t"); if (Ident.getIsSales()) //[ /userinfo.jsp; Line: 121] out.print("已发货"); //[ /userinfo.jsp; Line: 122] else //[ /userinfo.jsp; Line: 123] out.print("未发货"); //[ /userinfo.jsp; Line: 124] //[ /userinfo.jsp; Line: 125] //[ /userinfo.jsp; Line: 125] out.print("</td>\r\n <td align=\"center\"><a href=\"#\" onclick=\"openScript(\'showindent.jsp?id="); out.print(String.valueOf( Ident.getId() )); //[ /userinfo.jsp; Line: 126] out.print("&orderno="); out.print(String.valueOf(Ident.getIndentNo() )); //[ /userinfo.jsp; Line: 126] out.print("\',\'indentlist\',500,400);\" >查看</a></td>\r\n </tr>\r\n\t\t"); } //[ /userinfo.jsp; Line: 128] //[ /userinfo.jsp; Line: 128] out.print("\r\n </table>\r\n"); } //[ /userinfo.jsp; Line: 130] //[ /userinfo.jsp; Line: 130] out.print("\r\n <p> </p>\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n <table width=\"70%\" 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:pz990@163.net\">pz990@163.net</a></td>\r\n </tr>\r\n </table>\r\n \r\n</div>\r\n</body>\r\n</html>\r\n"); } catch (Throwable __ee) { while (out != null && out != _originalOut) out = pageContext.popBody(); ((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee); }
//before final close brace...
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -