📄 holder_jsp.java
字号:
package org.apache.jsp.holder;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import bholder.*;
public final class holder_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=UTF-8");
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("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>\r\n");
out.write("holder\r\n");
out.write("</title>\r\n");
out.write("<meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write(".STYLE1 {color: #0033FF}\r\n");
out.write(".STYLE2 {color: #0099FF}\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n");
out.write("<body >\r\n");
out.write(" ");
request.setCharacterEncoding("utf-8");
out.write("\r\n");
out.write("<h1 align=\"center\" class=\"STYLE1\" >所有人信息</h1>\r\n");
out.write("<table width=\"422\" border=\"0\" align=\"center\">\r\n");
out.write(" <tr>\r\n");
out.write(" <form action=\"../controller?action=hselect&method=hname\" method=\"post\" name=\"form1\">\r\n");
out.write(" <td width=\"109\" height=\"31\">按姓名查询: </td>\r\n");
out.write(" <td width=\"188\"><label>\r\n");
out.write(" <input name=\"name\" type=\"text\" id=\"name\" >\r\n");
out.write(" </label></td>\r\n");
out.write(" <td width=\"111\"><label>\r\n");
out.write(" <input type=\"submit\" name=\"Submit\" value=\"提交\">\r\n");
out.write(" </label></td>\r\n");
out.write(" </form>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <form name=\"form2\" method=\"post\" action=\"../controller?action=hselect&method=hselect\">\r\n");
out.write(" <td height=\"28\"></td>\r\n");
out.write(" <td></td>\r\n");
out.write(" <td> </td>\r\n");
out.write(" </form>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td> </td>\r\n");
out.write(" <td> </td>\r\n");
out.write(" <td><a href=\"hadd.jsp\">添加所有人</a></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write(" <form name=\"form4\" method=\"post\" action=\"../controller?action=hselect&method=cx\">\r\n");
out.write("<p> </p>\r\n");
out.write(" </form>\r\n");
out.write("<table width=\"984\" border=\"0\" align=\"center\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"130\" height=\"23\">编号</td>\r\n");
out.write(" <td width=\"152\">姓名</td>\r\n");
out.write(" <td width=\"139\">性别</td>\r\n");
out.write(" <td width=\"139\">年龄</td>\r\n");
out.write(" <td width=\"125\"> 住址</td>\r\n");
out.write(" <td width=\"183\">登记时间</td>\r\n");
out.write(" <td width=\"86\"> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
HolderDAO dao=new HolderDAO();
Collection c=dao.holde_select();
Iterator item=c.iterator();
while(item.hasNext()){
HolderVO vo=(HolderVO)item.next();
out.write("\r\n");
out.write(" <tr>\r\n");
out.write(" <td><span class=\"STYLE2\">");
out.print(vo.getId());
out.write("</span></td>\r\n");
out.write(" <td><span class=\"STYLE2\">");
out.print(vo.getName());
out.write("</span></td>\r\n");
out.write(" <td><span class=\"STYLE2\">");
out.print(vo.getSex());
out.write("</span></td>\r\n");
out.write(" <td><span class=\"STYLE2\">");
out.print(vo.getAge());
out.write("</span></td>\r\n");
out.write(" <td><span class=\"STYLE2\">");
out.print(vo.getAddress());
out.write("</span></td>\r\n");
out.write(" <td><span class=\"STYLE2\">");
out.print(vo.getTime());
out.write("</span></td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
}
out.write("\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);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -