?? 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>好易多網(wǎng)絡(luò)電子書店 首頁</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\">網(wǎng)站管理</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>內(nèi)容簡介:</p>\r\n");
out.write(" <ul>\r\n");
out.write(" <li>指導您利用萬維網(wǎng)的語言進行面向?qū)ο蟮某绦蛟O(shè)計</li>\r\n");
out.write(" <li>完整的正文、更新內(nèi)容及程序代碼可從http://www.bruceeckel.com下載 從Java的基本語法到它最高級的特性(網(wǎng)絡(luò)編程、高級面向?qū)ο竽芰Α⒍嗑€程),《Thinking \r\n");
out.write(" In Java》都能對您有所裨益。Bruce Eckel優(yōu)美的行文以及短小、精悍的程序示例有助于您理解含義模糊的概念。</li>\r\n");
out.write(" <li> 面向初學者和某種程度的專家</li>\r\n");
out.write(" <li>教授Java語言,而不是與平臺有關(guān)的理論 </li>\r\n");
out.write(" <li>覆蓋Java 1.2的大多數(shù)重要方面:Swing和新集合 <br>\r\n");
out.write(" 系統(tǒng)講述Java的高級理論:網(wǎng)絡(luò)編程、多線程處理、虛擬機性能以及同非Java代碼的連接 </li>\r\n");
out.write(" <li>320個有用的Java程序,15000行以上代碼 </li>\r\n");
out.write(" <li>解釋面向?qū)ο蠡纠碚摚瑥睦^承到設(shè)計方案 </li>\r\n");
out.write(" <li>來自與眾不同的獲獎作者Bruce Eckel </li>\r\n");
out.write(" <li>可通過萬維網(wǎng)免費索取源碼和持續(xù)更新的本書電子版</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>網(wǎng)站管理用戶:<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\">多智能網(wǎng)絡(luò)有限公司開發(fā)<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 + -