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

📄 viewindent_jsp.java

📁 J2EE网络书店系统 采用JSP , servlet ,javabean开发 初学者可以参考
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.Vector;
import store.Indent;
import store.User;

public final class viewindent_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");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"../errorpage.jsp", 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("<!DOCTYPE HTML PUBLIC \"-//w3c//dtd html 4.0 transitional//en\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>Store</title>\r\n");
      out.write("</head>\r\n");
      out.write("<body bgcolor=\"#FFFFFF\">\r\n");
      store.Indent IndentBean = null;
      synchronized (_jspx_page_context) {
        IndentBean = (store.Indent) _jspx_page_context.getAttribute("IndentBean", PageContext.PAGE_SCOPE);
        if (IndentBean == null){
          IndentBean = new store.Indent();
          _jspx_page_context.setAttribute("IndentBean", IndentBean, PageContext.PAGE_SCOPE);
        }
      }
      out.write("\r\n");
      out.write("\r\n");

User.ChkLogin(session);

      out.write("\r\n");
      out.write("\r\n");
      out.write("<h1><b>Store</b></h1>\r\n");
      out.write("<p>Manage Indents</p>\r\n");
      out.write("\r\n");
      out.write("<table border='1'>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td>IndentNo</td>\r\n");
      out.write("\t\t<td>UserName</td>\r\n");
      out.write("\t\t<td>SubmitTime</td>\r\n");
      out.write("\t\t<td>ConsignmentTime</td>\r\n");
      out.write("\t\t<td>TotalPrice</td>\r\n");
      out.write("\t\t<td>content</td>\r\n");
      out.write("\t\t<td>IsPayoff</td>\r\n");
      out.write("\t\t<td>IsSales</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t");

	Vector vector = IndentBean.LoadIndent(request);
	for (int i=0; i<vector.size(); i++)
	{
		Indent indent = (Indent)vector.elementAt(i);
		out.println("<tr>");
		out.println("<td><a href='servlet/store.ManageIndentList?action=List&indentno="+ indent.GetIndentNO() +"' target='_blank'>" + indent.GetIndentNO() + "</a></td>");
		out.println("<td>" + indent.GetUsername() + "</td>");
		out.println("<td>" + indent.GetSubmitTime() + "</td>");
		out.println("<td>" + indent.GetConsignmentTime() + "</td>");
		out.println("<td>" + indent.GetTolalPrice() + "</td>");
		out.println("<td>" + indent.GetContent() + "</td>");
		if(indent.GetIsPayoff().equals("0"))
		{
			out.println("<td>No</td>");
		}
		else
		{
			out.println("<td>Yes</td>");
		}
		if(indent.GetIsSales().equals("0"))
		{
			out.println("<td>No</td>");
		}
		else
		{
			out.println("<td>Yes</td>");
		}
		out.println("</tr>");
	}
	
      out.write("\r\n");
      out.write("</table>\r\n");
      out.write("<p><a href='viewbasket.jsp'>return your basket</a></p>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
    } 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 + -