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

📄 shoppingcar_jsp.java

📁 jsp+struct网上订票系统
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp.view;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import business.ShoppingCar;

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

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(4);
    _jspx_dependants.add("/WEB-INF/struts-bean.tld");
    _jspx_dependants.add("/WEB-INF/struts-html.tld");
    _jspx_dependants.add("/WEB-INF/struts-logic.tld");
    _jspx_dependants.add("/view/head.jsp");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_link_page;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_html_errors_nobody;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _jspx_tagPool_html_link_page = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _jspx_tagPool_html_errors_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_html_link_page.release();
    _jspx_tagPool_html_errors_nobody.release();
  }

  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");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("  <head>\r\n");
      out.write("    <!--\r\n");
      out.write("    <link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n");
      out.write("    -->\r\n");
      out.write("  </head>\r\n");
      out.write("  <body>\r\n");
      out.write("  <table width=\"100%\" height=\"439\"  border=\"1\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td height=\"22\">");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<body>\r\n");
      out.write("  <table width=\"100%\" height=\"125\"  border=\"0\" cellspacint=\"0\">\r\n");
      out.write("     <tr>\r\n");
      out.write("       <td height=\"57\" align=\"center\"><table width=\"56%\" height=\"46\"  border=\"0\" cellspacing=\"0\">\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td align=\"center\" bgcolor=\"#3399FF\">\r\n");
      out.write("           欢迎你,尊敬的\r\n");
      out.write("           ");

           		String username = (String)session.getAttribute("curr_user");
           		
           
      out.write("\r\n");
      out.write("           ");
      out.print(username);
      out.write("\r\n");
      out.write("           用户!\r\n");
      out.write("           </td>\r\n");
      out.write("         </tr>\r\n");
      out.write("       </table></td>\r\n");
      out.write("     </tr>\r\n");
      out.write("     <tr>\r\n");
      out.write("       <td height=\"25\" align=\"center\" bgcolor=\"#999999\"><table width=\"92%\"  border=\"0\" cellspacing=\"0\">\r\n");
      out.write("         <tr align=\"center\">\r\n");
      out.write("           <td width=\"10%\">");
      if (_jspx_meth_html_link_0(_jspx_page_context))
        return;
      out.write("</td>\r\n");
      out.write("           <td width=\"25%\">");
      if (_jspx_meth_html_link_1(_jspx_page_context))
        return;
      out.write("</td>\r\n");
      out.write("           <td width=\"10%\">");
      if (_jspx_meth_html_link_2(_jspx_page_context))
        return;
      out.write("</td>\r\n");
      out.write("           <td width=\"20%\">");
      if (_jspx_meth_html_link_3(_jspx_page_context))
        return;
      out.write("</td>\r\n");
      out.write("            <td width=\"15%\">");
      if (_jspx_meth_html_link_4(_jspx_page_context))
        return;
      out.write("</td>\r\n");
      out.write("           <td width=\"10%\">");
      if (_jspx_meth_html_link_5(_jspx_page_context))
        return;
      out.write("</td>\r\n");
      out.write("           <td width=\"10%\"><a href=\"/tikects/view/login.jsp\" onClick=\"exit()\">退出</a></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("       </table></td>\r\n");
      out.write("     </tr>\r\n");
      out.write("     <tr>\r\n");
      out.write("       <td height=\"25\"><hr></td>\r\n");
      out.write("     </tr>\r\n");
      out.write("   </table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
      out.write("<script>\r\n");
      out.write("function exit()\r\n");
      out.write("{\r\n");
      out.write("    window.close();\r\n");
      out.write("}\r\n");
      out.write("</script>");
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td height=\"388\" valign=\"top\" align=\"center\">\r\n");
      out.write("      \t");

      		String path = (String)session.getAttribute("path");
           if(path == null){
          		out.print("读取数据库失败");
            }else{
            	ApplicationContext context = 
	      		new FileSystemXmlApplicationContext(path);
	      		ShoppingCar car = (ShoppingCar)context.getBean("shopcar");
	      		car.list(request,out);
            }
      	
      out.write("\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td height=\"19\">");
      if (_jspx_meth_html_errors_0(_jspx_page_context))
        return;
      out.write("</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\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);
    }
  }

  private boolean _jspx_meth_html_link_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  html:link
    org.apache.struts.taglib.html.LinkTag _jspx_th_html_link_0 = (org.apache.struts.taglib.html.LinkTag) _jspx_tagPool_html_link_page.get(org.apache.struts.taglib.html.LinkTag.class);

⌨️ 快捷键说明

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