📄 booklist_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import book.bookclass;
import book.books;
public final class booklist_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
String right="";
String rightname="";
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(6);
_jspx_dependants.add("/inc/top1.jsp");
_jspx_dependants.add("/inc/top2.jsp");
_jspx_dependants.add("/inc/sub.jsp");
_jspx_dependants.add("/inc/left.jsp");
_jspx_dependants.add("/inc/top3.jsp");
_jspx_dependants.add("/inc/button.jsp");
}
public java.util.List getDependants() {
return _jspx_dependants;
}
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');
out.write('\n');
request.setCharacterEncoding("gb2312");
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("\r\n");
run.op_book book_list = null;
synchronized (_jspx_page_context) {
book_list = (run.op_book) _jspx_page_context.getAttribute("book_list", PageContext.PAGE_SCOPE);
if (book_list == null){
book_list = new run.op_book();
_jspx_page_context.setAttribute("book_list", book_list, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
book.books book = null;
synchronized (_jspx_page_context) {
book = (book.books) _jspx_page_context.getAttribute("book", PageContext.PAGE_SCOPE);
if (book == null){
book = new book.books();
_jspx_page_context.setAttribute("book", book, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
run.op_bookclass classlist = null;
synchronized (_jspx_page_context) {
classlist = (run.op_bookclass) _jspx_page_context.getAttribute("classlist", PageContext.PAGE_SCOPE);
if (classlist == null){
classlist = new run.op_bookclass();
_jspx_page_context.setAttribute("classlist", classlist, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<HTML>\r\n");
out.write("<HEAD>\r\n");
out.write("<TITLE>\r\n");
out.write("个人书店在线\r\n");
out.write("</TITLE>\r\n");
out.write("</HEAD>\r\n");
out.write("<BODY BGCOLOR=#3E79A6 leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n");
out.write("<!--Counter-->\r\n");
out.write("<!--Something Here-->\r\n");
out.write("<table width=\"1000\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"135\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"110\" width=\"540\" background=\"images/index_top1.gif\" valign=\"top\"> \r\n");
out.write(" <!-------------------------------------------------------------------------------------------------------------->\r\n");
out.write(" <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"540\" align=\"center\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"25\" width=\"340\"> <font color=\"#FFFFFF\"><b></b></font> \r\n");
out.write(" <div align=\"center\"></div>\r\n");
out.write(" </td>\r\n");
out.write(" <td height=\"25\" width=\"200\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"30\" width=\"500\"> \r\n");
out.write(" <div align=\"center\"><font color=\"#FFFFFF\"><b><font size=\"5\">\r\n");
out.write("<!--Your Company Name-->\r\n");
out.write("苹果书店在线 \r\n");
out.write(" </font></b></font></div>\r\n");
out.write(" </td>\r\n");
out.write(" <td height=\"30\" width=\"200\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"30\" width=\"500\"> \r\n");
out.write(" <div align=\"center\"><font size=\"4\" color=\"#FFFFFF\">\r\n");
out.write("<!--Your Company Name.English-->\r\n");
out.write("Apple Book Shop Online\r\n");
out.write("</font> </div>\r\n");
out.write(" </td>\r\n");
out.write(" <td height=\"25\" width=\"200\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <!-------------------------------------------------------------------------------------------------------------->\r\n");
out.write(" </td>\r\n");
out.write(" <td height=\"110\" width=\"400\" background=\"images/01.gif\"><img src=\"images/index_pic.gif\" width=\"400\" height=\"110\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td colspan=\"2\" height=\"25\"><img src=\"images/index_top2.gif\" width=\"1000\" height=\"25\"></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("<!---------------------------------------------上面图片部分结束------------------------------------------------------------------->");
out.write('\r');
out.write('\n');
out.write("\r\n");
out.write("\r\n");
out.write(" \r\n");
out.write("\r\n");
out.write("<table width=\"1000\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" background=\"images/index_lmbg.gif\" height=\"50\">\r\n");
out.write(" <tr bgcolor=\"#c4c4c4\" height=\"5\">\r\n");
out.write(" <td> \r\n");
out.write("\t <div align=\"left\"><b>\r\n");
out.write("<!--Language-->\r\n");
out.write("<!--Something Here-->\r\n");
out.write("\t\t</b> \r\n");
out.write("\t </div>\r\n");
out.write("\t</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td valign=\"top\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"28\">\r\n");
out.write(" <tr> \r\n");
out.write("\t\t<td width=\"14%\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"28\" background=\"images/index_lm.gif\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"100%\"> \r\n");
out.write(" <div align=\"center\"><b><a href=\"logout.jsp\"><font color=\"#FFFFFF\">首页</font></a></b> \r\n");
out.write(" </div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write("<!--Button1.Content.Begin-->\r\n");
out.write(" <td width=\"15%\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"28\" background=\"images/index_lm.gif\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"100%\"> \r\n");
out.write(" <div align=\"center\"><b>\r\n");
out.write("<!--Button1.Link-->\r\n");
out.write("<a href=\"#\">\r\n");
out.write("<font color=\"#FFFFFF\">\r\n");
out.write("<!--Button1-->\r\n");
out.write("书店简介\r\n");
out.write("</font></a></b> \r\n");
out.write(" </div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write("<!--Button1.Content.End-->\r\n");
out.write("\r\n");
out.write("<!--Button2.Content.Begin-->\r\n");
out.write(" <td width=\"14%\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"28\" background=\"images/index_lm.gif\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"100%\"> \r\n");
out.write(" <div align=\"center\"><b>\r\n");
out.write("<!--Button2.Link-->\r\n");
out.write("<a href=\"#\">\r\n");
out.write("<font color=\"#FFFFFF\">\r\n");
out.write("<!--Button2-->\r\n");
out.write("新书介绍 \r\n");
out.write(" </font></a></b></div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write("<!--Button2.Content.End-->\r\n");
out.write("\r\n");
out.write("<!--Button3.Content.Begin-->\r\n");
out.write(" <td width=\"14%\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"28\" background=\"images/index_lm.gif\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"100%\"> \r\n");
out.write(" <div align=\"center\"><b>\r\n");
out.write("<!--Button3.Link-->\r\n");
out.write("<a href=\"#\">\r\n");
out.write("<font color=\"#FFFFFF\">\r\n");
out.write("<!--Button3-->\r\n");
out.write("在线服务 \r\n");
out.write(" </font></a></b></div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write("<!--Button3.Content.End-->\r\n");
out.write("\r\n");
out.write("<!--Button4.Content.Begin-->\r\n");
out.write(" <td width=\"14%\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"28\" background=\"images/index_lm.gif\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"100%\"> \r\n");
out.write(" <div align=\"center\"><b>\r\n");
out.write("<!--Button4.Link-->\r\n");
out.write("<a href=\"#\">\r\n");
out.write("<font color=\"#FFFFFF\">\r\n");
out.write("<!--Button4-->\r\n");
out.write("本店公告 \r\n");
out.write(" </font></a></b></div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write("<!--Button4.Content.End-->\r\n");
out.write("\r\n");
out.write("<!--Button5.Content.Begin-->\r\n");
out.write(" <td width=\"14%\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"28\" background=\"images/index_lm.gif\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"100%\"> \r\n");
out.write(" <div align=\"center\"><b>\r\n");
out.write("<!--Button5.Link-->\r\n");
out.write("<a href=\"#\">\r\n");
out.write("<font color=\"#FFFFFF\">\r\n");
out.write("<!--Button5-->\r\n");
out.write("店长答疑 \r\n");
out.write(" </font></a></b></div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write("<!--Button5.Content.End-->\r\n");
out.write("\r\n");
right=(String)session.getAttribute("right");
if(right=="admin")
{
out.write("\r\n");
out.write("<!--Button6.Content.Begin-->\r\n");
out.write(" <td width=\"16%\"> \r\n");
out.write(" <table width=\"110%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"28\" \r\n");
out.write("\r\n");
out.write("background=\"images/index_lm.gif\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"100%\"> \r\n");
out.write(" <div align=\"center\"><b>\r\n");
out.write("<!--Button6.Link-->\r\n");
out.write("<a href=\"admin/adm_adminbook.jsp\">\r\n");
out.write("<font color=\"#FFFFFF\">\r\n");
out.write("<!--Button6-->\r\n");
out.write("管理员入口\r\n");
out.write("</font></a> \r\n");
out.write(" </b></div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write("<!--Button6.Content.End-->\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("\r\n");
out.write("\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write('\r');
out.write('\n');
request.setCharacterEncoding("gb2312");
out.write('\r');
out.write('\n');
out.write(" \r\n");
out.write("\r\n");
if(right=="admin")
rightname="管理员";
else
rightname="普通用户";
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<table width=\"1000\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"1\" bgcolor=white>\r\n");
out.write("<tr>\r\n");
out.write(" <td><a href=\"booklist.jsp\">在线购书</a>\r\n");
out.write(" <a href=\"shopcar.jsp\">我的购物车</a>\r\n");
out.write(" <a href=\"info.jsp\">订单信息</a>\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -