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

📄 index_jsp.java

📁 JSP制作的一个在线书店 拥有简单的功能 请看看吧 初学者
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  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("\n");
      out.write("\n");
      out.write("<html>\n");
      out.write("  <head>\n");
      out.write("    <title>mainsian_nofont_CN</title>\n");
      out.write("    <meta http-equiv=\"Content-Type\" content=\"text/html;charset=gb2312\">\n");
      out.write("      ");
String welcome=null;      try{        if(session.getAttribute("username")==null || session.getAttribute("username").equals(""))        {          welcome="欢迎游客";        }        else        {          welcome=session.getAttribute("username").toString()+"您好! ";        }      }catch(Exception e)      {        e.printStackTrace();      }      
      out.write("\n");
      out.write("      </head>\n");
      out.write("      <body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n");
      out.write("        <!-- ImageReady Slices (mainsian_nofont_CN.psd) -->\n");
      out.write("        <table width=\"100%\">\n");
      out.write("          <tr>\n");
      out.write("            <td height=\"100%\" width=\"100%\" align=\"center\" valign=\"middle\">\n");
      out.write("              <table id=\"Table_01\" width=\"1025\" height=\"1401\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n");
      out.write("                <tr>\n");
      out.write("                  <td colspan=\"7\" background=\"images/mainsian_nofont_CN_01.gif\">\n");
      out.write("                    <table border=\"0\" width=\"100%\" height=\"100%\">\n");
      out.write("                      <tr>\n");
      out.write("                        <td rowspan=\"2\"> </td>\n");
      out.write("                        <td height=\"38\" width=\"759\" colspan=\"6\">\n");
      out.write("                          <table border=\"0\" width=\"100%\" height=\"100%\">\n");
      out.write("                            <tr>\n");
      out.write("                              <td align=\"right\"><font size=\"2\" face=\"幼圆\">");
      out.print(welcome );
      out.write(" </td>\n");
      out.write("                                <td width=\"43\">\n");
      out.write("                                  <p align=\"center\"><font size=\"2\" face=\"幼圆\">\n");
      out.write("                                    <a style=\"color: #FF0000\" href=\"loginPage.jsp\">登录</a></font></td>\n");
      out.write("                                    <td width=\"54\">\n");
      out.write("                                      <p align=\"center\"><font size=\"2\" face=\"幼圆\">\n");
      out.write("                                        <a href=\"regeditPage.jsp\">注册</a></font></td>\n");
      out.write("                                        <td width=\"54\">\n");
      out.write("                                          <p align=\"center\"><font size=\"2\" face=\"幼圆\">\n");
      out.write("                                            <a href=\"BookSale.jsp\">商品</a></font></td>\n");
      out.write("                                            <td width=\"53\">\n");
      out.write("                                              <p align=\"center\"><font size=\"2\" face=\"幼圆\">\n");
      out.write("                                                <a href=\"underFrame.htm\">后台</a></font></td>\n");
      out.write("                                                <td width=\"177\"> </td>\n");
      out.write("                            </tr>\n");
      out.write("                          </table>\n");
      out.write("                                        </td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td width=\"100\"> </td>\n");
      out.write("                        <td width=\"81\"> </td>\n");
      out.write("                        <td width=\"84\"> </td>\n");
      out.write("                        <td width=\"96\"> </td>\n");
      out.write("                        <td width=\"109\"> </td>\n");
      out.write("                        <td width=\"289\"> </td>\n");
      out.write("                      </tr>\n");
      out.write("                    </table>\n");
      out.write("</td>\n");
      out.write("<td>\n");
      out.write("  <img src=\"images/spacer.gif\" width=\"1\" height=\"133\" alt=\"\"></td>\n");
      out.write("                </tr>\n");
      out.write("                <tr>\n");
      out.write("                  <td colspan=\"2\" background=\"images/mainsian_nofont_CN_02.gif\">&nbsp;\t\t\t</td>\n");
      out.write("                  <td background=\"images/mainsian_nofont_CN_03.gif\">\n");
      out.write("                    <table border=\"0\" width=\"100%\" height=\"100%\">\n");
      out.write("                      <tr>\n");
      out.write("                        <td> </td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"20\"> </td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"20\"></td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"20\"></td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"20\"> </td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"20\"></td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"20\"></td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"20\"></td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"20\"></td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"20\"></td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"20\"> </td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"30\"> </td>\n");
      out.write("                      </tr>\n");
      out.write("                    </table>\n");
      out.write("                    &nbsp;\t\t\t</td>\n");
      out.write("                    <td colspan=\"2\" background=\"images/mainsian_nofont_CN_04.gif\">\n");
      out.write("                      <table border=\"0\" width=\"100%\" height=\"100%\">\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"49\"><form action=\"/Main/tradesearchservlet\" name=\"form1\">\n");
      out.write("\n");
      out.write("<br />&nbsp; <font size=\"2\"><font face=\"幼圆\">&nbsp;搜索单号</font> <input type=\"text\" name=\"search\" size=\"15\"/></font><input type=\"submit\" name=\"Submit\" value=\"提交查询\"/></form></td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td height=\"106\">\n");
      out.write("                          <table border=\"0\" width=\"100%\" height=100%>\n");
      out.write("                            <tr>\n");
      out.write("                              <td width=\"70\" rowspan=\"2\"> </td>\n");
      out.write("                              <td width=\"60\"> </td>\n");
      out.write("                              <td width=\"53\"> </td>\n");
      out.write("                              <td width=\"54\"> </td>\n");
      out.write("                              <td> </td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                              <td width=\"60\" height=\"35\"> </td>\n");
      out.write("                              <td width=\"53\" height=\"35\"> </td>\n");
      out.write("                              <td width=\"54\" height=\"35\"> </td>\n");
      out.write("                              <td height=\"35\"> </td>\n");
      out.write("                            </tr>\n");
      out.write("                          </table>\n");
      out.write("</td>\n");
      out.write("                      </tr>\n");
      out.write("                      <tr>\n");
      out.write("                        <td>\n");
      out.write("                          <table border=\"0\" width=\"100%\" height=\"100%\">\n");
      out.write("                            <tr>\n");
      out.write("                              <td width=\"11\"> </td>\n");
      out.write("                              <td> </td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                              <td width=\"11\" height=\"19\"></td>\n");
      out.write("                              <td height=\"19\"></td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                              <td width=\"11\" height=\"18\"></td>\n");
      out.write("                              <td height=\"18\"></td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                              <td width=\"11\" height=\"18\"></td>\n");
      out.write("                              <td height=\"18\"></td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                              <td width=\"11\" height=\"17\"></td>\n");
      out.write("                              <td height=\"17\"></td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                              <td width=\"11\" height=\"21\"> </td>\n");
      out.write("                              <td height=\"21\"> </td>\n");
      out.write("                            </tr>\n");
      out.write("                          </table>\n");
      out.write("</td>\n");
      out.write("                      </tr>\n");
      out.write("                      </table>\n");
      out.write("                      &nbsp;\t\t\t</td>\n");
      out.write("                      <td rowspan=\"2\" background=\"images/mainsian_nofont_CN_05.gif\">\n");
      out.write("                        <table border=\"0\" width=\"100%\" height=100%>\n");
      out.write("                          <tr>\n");
      out.write("                            <td width=\"15\" height=\"58\"> </td>\n");
      out.write("                            <td height=\"58\"> </td>\n");
      out.write("                            <td width=\"17\" height=\"58\"> </td>\n");
      out.write("                          </tr>\n");
      out.write("                          <tr>\n");
      out.write("                            <td width=\"15\"> </td>\n");
      out.write("                            <td> </td>\n");
      out.write("                            <td width=\"17\"> </td>\n");
      out.write("                          </tr>\n");
      out.write("                          <tr>\n");
      out.write("                            <td width=\"15\" height=\"62\"> </td>\n");
      out.write("                            <td height=\"62\"> </td>\n");
      out.write("                            <td width=\"17\" height=\"62\"> </td>\n");
      out.write("                          </tr>\n");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -