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

📄 user_005flist_jsp.java

📁 自己写的一个java购销系统
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import com.tarena.serv.entity.User;

public final class user_005flist_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");
      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");

List<User> users=(List<User>)request.getAttribute("users"); 

      out.write("\r\n");
      out.write("\t\t <html> \r\n");
      out.write("\t\t <head><title>ServletJdbcConnection</title></head> \r\n");
      out.write("\t\t <body> \r\n");
      out.write("\t\t <CENTER><h2>User List by jsp,happy success!!</h2></CENTER> \r\n");
      out.write("\t\t <HR> \r\n");
      out.write("\t\t <TABLE align=\"center\" bgcolor=\"#FFFFCC\" cellspacing=\"1\" cellpadding=\"3\" border=\"1\" width=\"600\"> \r\n");
      out.write("\t\t <TR bgcolor=\"#CCCC00\"> \r\n");
      out.write("\t\t <Th>no</Th> \r\n");
      out.write("\t\t <Th>userNo</Th> \r\n");
      out.write("\t\t <Th>userName</Th> \r\n");
      out.write("\t\t <Th>passWord</Th> \r\n");
      out.write("\t\t <Th>age</Th> \r\n");
      out.write("\t\t <Th>gender</Th> \r\n");
      out.write("\t\t <Th>degree</Th> \r\n");
      out.write("\t\t <Th>hobbies</Th> \r\n");
      out.write("\t\t <Th>introduction</Th> \r\n");
      out.write("\t\t </TR> \r\n");


		Iterator<User> it=users.iterator();
		int no=1;
		while(it.hasNext()){
			User user=(User)it.next();

      out.write("\r\n");
      out.write("\t\t\t <TR> \r\n");
      out.write("\t\t\t <Td align=\"center\">");
      out.print(no);
      out.write("</Td> \r\n");
      out.write("\t\t\t <Td align=\"center\">");
      out.print(user.getUserNo());
      out.write("</Td> \r\n");
      out.write("\t\t\t <Td align=\"center\">");
      out.print(user.getUserName());
      out.write("</Td> \r\n");
      out.write("\t\t\t <TD align=\"center\">");
      out.print(user.getPassWord());
      out.write("</Td> \r\n");
      out.write("\t\t\t <Td align=\"center\">");
      out.print(user.getAge());
      out.write("</Td> \r\n");
      out.write("\t\t\t <TD align=\"center\">");
      out.print(user.getGender());
      out.write("</Td> \r\n");
      out.write("\t\t\t <TD align=\"center\">");
      out.print(user.getDegree());
      out.write("</Td> \r\n");
      out.write("\t\t\t <TD align=\"center\">");
      out.print(user.getHobbies());
      out.write("</Td> \r\n");
      out.write("\t\t\t <TD align=\"center\">");
      out.print(user.getIntroduction());
      out.write("</Td> \r\n");
      out.write("\t\t\t </TR> \t\r\n");


 no=no+1;
		}

      out.write("\r\n");
      out.write("\t\t </TABLE> \r\n");
      out.write("\t\t </body> \r\n");
      out.write("\t\t </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 + -