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

📄 manageindent_jsp.java

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

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

public final class manageindent_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("\n");
      out.write("\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//w3c//dtd html 4.0 transitional//en\">\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<title>Store</title>\n");
      out.write("</head>\n");
      out.write("<body bgcolor=\"#FFFFFF\">\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('\n');
      out.write('\n');
Admin.ChkLogin(session);
      out.write("\n");
      out.write("\n");
      out.write("<h1><b>Store</b></h1>\n");
      out.write("<p>Manage Indents</p>\n");
      out.write("\n");
      out.write("<table border='1'>\n");
      out.write("\t<tr>\n");
      out.write("\t\t<td>IndentNo</td>\n");
      out.write("\t\t<td>UserName</td>\n");
      out.write("\t\t<td>SubmitTime</td>\n");
      out.write("\t\t<td>ConsignmentTime</td>\n");
      out.write("\t\t<td>TotalPrice</td>\n");
      out.write("\t\t<td>content</td>\n");
      out.write("\t\t<td>IsPayoff</td>\n");
      out.write("\t\t<td>IsSales</td>\n");
      out.write("\t\t<td>Update</td>\n");
      out.write("\t\t<td>Delete</td>\n");
      out.write("\t</tr>\n");
      out.write("\t");
	Vector vector = IndentBean.LoadIndent();	for (int i=0; i<vector.size(); i++)	{		Indent indent = (Indent)vector.elementAt(i);		out.println("<form name='form" + String.valueOf(i+1) +"' action='../servlet/store.ManageIndent' method='get'>");		out.println("<tr><input type='hidden' name='id' value='" + indent.GetId() +"' size='10'>");		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>");		out.println("<td><select name='ispayoff'>");		if(indent.GetIsPayoff().equals("0"))		{			out.println("<option value='0' selected>No</option>");			out.println("<option value='1'>Yes</option>");		}		else		{			out.println("<option value='0'>No</option>");			out.println("<option value='1' selected>Yes</option>");		}		out.println("</select></td>");		out.println("<td><select name='issales'>");		if(indent.GetIsSales().equals("0"))		{			out.println("<option value='0' selected>No</option>");			out.println("<option value='1'>Yes</option>");		}		else		{			out.println("<option value='0'>No</option>");			out.println("<option value='1' selected>Yes</option>");		}		out.println("</select></td>");		out.println("<td><input type='submit' name='action' value='Update'></td>");		out.println("<td><input type='submit' name='action' value='Delete'></td>");		out.println("</tr>");		out.println("</form>");	}	
      out.write("\n");
      out.write("</table>\n");
      out.write("<p><a href='manage.jsp'>return manage page</a></p>\n");
      out.write("\n");
      out.write("\n");
      out.write("</body>\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 + -