⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 __showindent.java

📁 电子书店管理系统, 不要解压密码的,直接可以下载
💻 JAVA
字号:
/* compiled from JSP: /showindent.jsp
*
* This code was automatically generated at 14:23:27 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.books; //[ /showindent.jsp; Line: 9]import org.pan.util.strFormat; //[ /showindent.jsp; Line: 10]import org.pan.web.book.indentlist; //[ /showindent.jsp; Line: 11]import org.pan.web.book.books; //[ /showindent.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:27 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 __showindent
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("/showindent.jsp", 1059548932000L, "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("/showindent.jsp", 1059548932000L, "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");            //[ /showindent.jsp; Line: 3]            String username = (String)session.getAttribute("username"); //[ /showindent.jsp; Line: 4]            if ( username == null || username.equals("") ){ //[ /showindent.jsp; Line: 5]                response.sendRedirect("login.jsp?msg=nologin"); //[ /showindent.jsp; Line: 6]            } //[ /showindent.jsp; Line: 7]            out.print("\r\n");            out.print("\r\n");            out.print("\r\n");            out.print("\r\n");            out.print("\r\n");            org.pan.web.purchase myIndentlist = null; //[ /showindent.jsp; Line: 13]            myIndentlist = (org.pan.web.purchase)pageContext.getAttribute("myIndentlist"); //[ /showindent.jsp; Line: 13]            if (myIndentlist == null) { // begin 'myIndentlist' instantiation block... //[ /showindent.jsp; Line: 13]                { // Don't need to synchronize on page scope //[ /showindent.jsp; Line: 13]                    myIndentlist = (org.pan.web.purchase)pageContext.getAttribute("myIndentlist"); //[ /showindent.jsp; Line: 13]                    if (myIndentlist == null) { // begin 'myIndentlist' synchronized instantiation block... //[ /showindent.jsp; Line: 13]                        myIndentlist = new org.pan.web.purchase(); //[ /showindent.jsp; Line: 13]                        pageContext.setAttribute("myIndentlist", myIndentlist); //[ /showindent.jsp; Line: 13]                    } // end synchronized bean instantiation block... //[ /showindent.jsp; Line: 13]                } // end synchronized bean scope block... //[ /showindent.jsp; Line: 13]            } // end bean instantiation block... //[ /showindent.jsp; Line: 13]            out.print("\r\n");            org.pan.web.booksmn mybook = null; //[ /showindent.jsp; Line: 14]            mybook = (org.pan.web.booksmn)pageContext.getAttribute("mybook"); //[ /showindent.jsp; Line: 14]            if (mybook == null) { // begin 'mybook' instantiation block... //[ /showindent.jsp; Line: 14]                { // Don't need to synchronize on page scope //[ /showindent.jsp; Line: 14]                    mybook = (org.pan.web.booksmn)pageContext.getAttribute("mybook"); //[ /showindent.jsp; Line: 14]                    if (mybook == null) { // begin 'mybook' synchronized instantiation block... //[ /showindent.jsp; Line: 14]                        mybook = new org.pan.web.booksmn(); //[ /showindent.jsp; Line: 14]                        pageContext.setAttribute("mybook", mybook); //[ /showindent.jsp; Line: 14]                    } // end synchronized bean instantiation block... //[ /showindent.jsp; Line: 14]                } // end synchronized bean scope block... //[ /showindent.jsp; Line: 14]            } // end bean instantiation block... //[ /showindent.jsp; Line: 14]            out.print("\r\n");            //[ /showindent.jsp; Line: 15]            String mesg = ""; //[ /showindent.jsp; Line: 16]            long Id=0; //[ /showindent.jsp; Line: 17]            String indentNo = request.getParameter("orderno"); //[ /showindent.jsp; Line: 18]            if (indentNo==null) indentNo=""; //[ /showindent.jsp; Line: 19]            if (request.getParameter("id")==null || request.getParameter("id").equals("")) { //[ /showindent.jsp; Line: 20]                mesg = "你要查看的订单清单不存在!"; //[ /showindent.jsp; Line: 21]            } else { //[ /showindent.jsp; Line: 22]                try { //[ /showindent.jsp; Line: 23]                    Id = Long.parseLong(request.getParameter("id")); //[ /showindent.jsp; Line: 24]                    if (!myIndentlist.getIndentList(Id)){ //[ /showindent.jsp; Line: 25]                        mesg = "你要查看的订单清单不存在!"; //[ /showindent.jsp; Line: 26]                    } //[ /showindent.jsp; Line: 27]                } catch (Exception e){ //[ /showindent.jsp; Line: 28]                    mesg = "你要查看的订单清单不存在!"; //[ /showindent.jsp; Line: 29]                } //[ /showindent.jsp; Line: 30]            } //[ /showindent.jsp; Line: 31]            //[ /showindent.jsp; Line: 32]            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\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  ");            if(!mesg.equals("")){ //[ /showindent.jsp; Line: 46]                out.println(mesg); //[ /showindent.jsp; Line: 47]            } else { //[ /showindent.jsp; Line: 48]                //[ /showindent.jsp; Line: 49]                //[ /showindent.jsp; Line: 49]                out.print("\r\n\t\t<p>好易多书店图书订单");                out.print(String.valueOf( indentNo ));  //[ /showindent.jsp; Line: 50]                out.print("&nbsp;清单:</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");                //[ /showindent.jsp; Line: 59]                for (int i=0; i<myIndentlist.getIndent_list().size();i++){ //[ /showindent.jsp; Line: 60]                    indentlist idList = (indentlist) myIndentlist.getIndent_list().elementAt(i); //[ /showindent.jsp; Line: 61]                    if (mybook.getOnebook((int)idList.getBookNo()) ){ //[ /showindent.jsp; Line: 62]                        books bk = (books) mybook.getBooklist().elementAt(0);		 //[ /showindent.jsp; Line: 63]                        //[ /showindent.jsp; Line: 64]                        //[ /showindent.jsp; Line: 64]                        out.print("\t  \r\n\t      <tr align=\"center\"> \r\n            <td>");                        out.print(String.valueOf( bk.getBookName() ));  //[ /showindent.jsp; Line: 66]                        out.print("</td>\r\n            <td>");                        out.print(String.valueOf( bk.getAuthor() ));  //[ /showindent.jsp; Line: 67]                        out.print("</td>\r\n            <td>");                        out.print(String.valueOf( bk.getClassname() ));  //[ /showindent.jsp; Line: 68]                        out.print("</td>\r\n            <td>");                        out.print(String.valueOf( bk.getPrince() ));  //[ /showindent.jsp; Line: 69]                        out.print("</td>\r\n            <td>");                        out.print(String.valueOf( idList.getAmount() ));  //[ /showindent.jsp; Line: 70]                        out.print("</td>\r\n          </tr>\r\n\t");                        //[ /showindent.jsp; Line: 72]                    } //[ /showindent.jsp; Line: 73]                } //[ /showindent.jsp; Line: 74]                //[ /showindent.jsp; Line: 74]                out.print("\r\n\t\t</table>\r\n");            }  //[ /showindent.jsp; Line: 76]            //[ /showindent.jsp; Line: 76]            out.print("\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: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");            mybook.close(); //[ /showindent.jsp; Line: 89]            //[ /showindent.jsp; Line: 89]        } 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 + -