【Java开源代码栏目提醒】:网学会员为需要Java开源代码的朋友们搜集整理了__showbook.java相关资料,希望对各位网友有所帮助!
/* compiled from JSP: /showbook.jsp
*
* This code was automatically generated at 14:23:23 on 2004-3-2
* by weblogic.servlet.jsp.Jsp2
Java -- 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; //[ /showbook.jsp; Line: 3]
import org.pan.util.strFormat; //[ /showbook.jsp; Line: 4]
// 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:23 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 __showbook
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("/showbook.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("/showbook.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");
out.print("\r\n");
out.print("\r\n");
org.pan.web.booksmn book = null; //[ /showbook.jsp; Line: 5]
book = (org.pan.web.booksmn)pageContext.getAttribute("book"); //[ /showbook.jsp; Line: 5]
if (book == null) { // begin 'book' instantiation block... //[ /showbook.jsp; Line: 5]
{ // Don't need to synchronize on page scope //[ /showbook.jsp; Line: 5]
book = (org.pan.web.booksmn)pageContext.getAttribute("book"); //[ /showbook.jsp; Line: 5]
if (book == null) { // begin 'book' synchronized instantiation block... //[ /showbook.jsp; Line: 5]
book = new org.pan.web.booksmn(); //[ /showbook.jsp; Line: 5]
pageContext.setAttribute("book", book); //[ /showbook.jsp; Line: 5]
} // end synchronized bean instantiation block... //[ /showbook.jsp; Line: 5]
} // end synchronized bean scope block... //[ /showbook.jsp; Line: 5]
} // end bean instantiation block... //[ /showbook.jsp; Line: 5]
out.print("\r\n");
//[ /showbook.jsp; Line: 6]
String mesg = ""; //[ /showbook.jsp; Line: 7]
int Id=0; //[ /showbook.jsp; Line: 8]
if (request.getParameter("bookid")==null || request.getParameter("bookid").equals("")) { //[ /showbook.jsp; Line: 9]
mesg = "你要查看的图书不存在!"; //[ /showbook.jsp; Line: 10]
} else { //[ /showbook.jsp; Line: 11]
try { //[ /showbook.jsp; Line: 12]
Id = Integer.parseInt(request.getParameter("bookid")); //[ /showbook.jsp; Line: 13]
if (!book.getOnebook(Id)){ //[ /showbook.jsp; Line: 14