📄 index_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import org.pan.web.book.bookclass;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
public Object 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\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
org.pan.web.bookclasslist classlist = null;
synchronized (_jspx_page_context) {
classlist = (org.pan.web.bookclasslist) _jspx_page_context.getAttribute("classlist", PageContext.PAGE_SCOPE);
if (classlist == null){
classlist = new org.pan.web.bookclasslist();
_jspx_page_context.setAttribute("classlist", classlist, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>好易多网络电子书店 首页</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("\r\n");
out.write("<link rel=\"stylesheet\" href=\"books.css\" type=\"text/css\">\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body bgcolor=\"#FFCC99\" text=\"#000000\">\r\n");
out.write("<div align=\"center\">\r\n");
out.write(" <table width=\"750\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"120\" align=\"center\"><img src=\"images/Img20625.jpg\" width=\"50\" height=\"50\"><br>\r\n");
out.write(" <font color=\"#0066CC\">好易多书店</font></td>\r\n");
out.write(" <td align=\"center\"><img src=\"images/baners2.gif\" width=\"468\" height=\"60\"></td>\r\n");
out.write(" <td align=\"center\" width=\"80\"><a href=\"#\">本站公告</a><br>\r\n");
out.write(" <br>\r\n");
out.write(" <a href=\"manage/login.jsp\">网站管理</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("\r\n");
out.write("<table width=\"750\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"250\"> </td>\r\n");
out.write(" <td width=\"100\"><a href=\"booklist.jsp\">在线购物</a></td>\r\n");
out.write(" <td width=\"100\"><a href=\"shoperlist.jsp\">我的购物车</a></td> \r\n");
out.write("\t <td align=\"right\">当前时间:");
out.print( (new java.util.Date()).toLocaleString() );
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write(" <table width=\"750\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
out.write(" <tr valign=\"top\"> \r\n");
out.write(" <td width=\"186\"> \r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"20\"> </td>\r\n");
out.write(" <td>本店图书分类:</td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
if (classlist.excute()){
for (int i=0;i<classlist.getClasslist().size();i++){
bookclass bc = (bookclass) classlist.getClasslist().elementAt(i);
out.write("\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"20\"> </td>\r\n");
out.write(" <td><a href=\"booklist.jsp?classid=");
out.print( bc.getId());
out.write('"');
out.write('>');
out.print( bc.getClassName() );
out.write("</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
}
}
out.write("\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"20\"> </td>\r\n");
out.write(" <td> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <p><img src=\"images/qrjbutton.gif\" width=\"120\" height=\"60\"></p>\r\n");
out.write(" <p><img src=\"images/it_button_3.gif\" width=\"100\" height=\"50\"></p>\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"387\">本店图书精品 \r\n");
out.write(" <table width=\"95%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td rowspan=\"2\" align=\"center\" width=\"49%\"><img src=\"images/javabeans.gif\" width=\"126\" height=\"97\"></td>\r\n");
out.write(" <td width=\"51%\">《Thinking In Java》中文版</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td width=\"51%\"> 作者:Bruce Eckel<br>\r\n");
out.write(" 编译:Trans Bot </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td colspan=\"2\"> \r\n");
out.write(" <p>内容简介:</p>\r\n");
out.write(" <ul>\r\n");
out.write(" <li>指导您利用万维网的语言进行面向对象的程序设计</li>\r\n");
out.write(" <li>完整的正文、更新内容及程序代码可从http://www.bruceeckel.com下载 从Java的基本语法到它最高级的特性(网络编程、高级面向对象能力、多线程),《Thinking \r\n");
out.write(" In Java》都能对您有所裨益。Bruce Eckel优美的行文以及短小、精悍的程序示例有助于您理解含义模糊的概念。</li>\r\n");
out.write(" <li> 面向初学者和某种程度的专家</li>\r\n");
out.write(" <li>教授Java语言,而不是与平台有关的理论 </li>\r\n");
out.write(" <li>覆盖Java 1.2的大多数重要方面:Swing和新集合 <br>\r\n");
out.write(" 系统讲述Java的高级理论:网络编程、多线程处理、虚拟机性能以及同非Java代码的连接 </li>\r\n");
out.write(" <li>320个有用的Java程序,15000行以上代码 </li>\r\n");
out.write(" <li>解释面向对象基本理论,从继承到设计方案 </li>\r\n");
out.write(" <li>来自与众不同的获奖作者Bruce Eckel </li>\r\n");
out.write(" <li>可通过万维网免费索取源码和持续更新的本书电子版</li>\r\n");
out.write(" </ul>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <p> </p>\r\n");
out.write(" </td>\r\n");
out.write(" <td width=\"167\" align=\"center\"> <br>\r\n");
out.write(" <form name=\"form1\" method=\"post\" action=\"login.jsp\">\r\n");
out.write(" 用户登录 \r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td align=\"right\">用户名:</td>\r\n");
out.write(" <td> \r\n");
out.write(" <input type=\"text\" name=\"username\" size=\"8\" maxlength=\"25\">\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td align=\"right\">密码:</td>\r\n");
out.write(" <td> \r\n");
out.write(" <input type=\"password\" name=\"passwd\" size=\"8\" maxlength=\"20\">\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td colspan=\"2\" align=\"center\"> \r\n");
out.write(" <input type=\"submit\" name=\"Submit\" value=\"登录\">\r\n");
out.write(" <input type=\"reset\" name=\"Submit2\" value=\"取消\">\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td colspan=\"2\">如果不是本站会员,请在此<a href=\"reg.jsp\">注册</a>。</td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </form>\r\n");
out.write(" <p> </p>\r\n");
out.write(" <p><img src=\"images/nba12060.gif\" width=\"120\" height=\"60\"></p>\r\n");
out.write(" <p>本站测试用户:test<br>\r\n");
out.write(" 密码:test</p>\r\n");
out.write(" <p>网站管理用户:<br>\r\n");
out.write(" admin 密码:nimda</p>\r\n");
out.write(" <!--<p>未完工,请多包涵!</p>-->\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <table width=\"70%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\">多智能网络有限公司开发<br>\r\n");
out.write(" CopyRight@2003 <br>\r\n");
out.write(" Email:<a href=\"mailto:pz990@163.net\">pz990@163.net</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" \r\n");
out.write("</div>\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);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -