📄 selectuserinfo_0002ejsp_jsp.java
字号:
package WebApplication.webApplication;
import java.util.List;
import java.sql.*;
import webapplication.UserInfo;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class selectUserInfo_0002ejsp_jsp extends HttpJspBase {
static {
}
public selectUserInfo_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
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;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(0,48);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(1,34);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(2,30);to=(3,0)]
out.write("\r\n");
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(3,43);to=(26,0)]
out.write("\r\n\r\n<html>\r\n<head>\r\n<title>\r\n人员信息表\r\n</title>\r\n<style type=\"text/css\">\r\n<!--\r\n.style1 {\r\n\tfont-family: \"??????\";\r\n\tfont-size: 24px;\r\n}\r\n-->\r\n</style>\r\n</head>\r\n<script Language=\"JavaScript\">\r\nfunction projectDelete(date){\r\nif(confirm(\"是否删除流水号为[\"+date+\"]的一组数据吗?\"))\r\nwindow.location=\"userinfoservlet?usermethod=2&userId=\"+date;\r\n\r\n}\r\n</script>\r\n");
// end
// begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(26,2);to=(26,47)]
List list=(List)request.getAttribute("list");
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(26,49);to=(39,0)]
out.write("\r\n<body bgcolor=\"#ffffff\">\r\n<h1 align=\"center\">\r\n人员信息表</h1>\r\n<p align=\"center\"> </p>\r\n<table width=\"709\" border=\"1\" align=\"center\" cellpadding=\"5\" cellspacing=\"5\">\r\n <tr>\r\n <td width=\"99\" height=\"29\"><div align=\"center\">数据库流水号</div></td>\r\n <td width=\"99\"><div align=\"center\">姓名</div></td>\r\n <td width=\"99\"><div align=\"center\">年龄</div></td>\r\n <td width=\"99\"><div align=\"center\">职业</div></td>\r\n <td width=\"221\"><div align=\"center\">操作</div></td>\r\n </tr>\r\n");
// end
// begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(39,2);to=(41,0)]
for(int i=0;i<list.size();i++){
UserInfo userInfo=(UserInfo)list.get(i);
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(41,2);to=(43,20)]
out.write("\r\n <tr>\r\n <td height=\"46\">");
// end
// begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(43,23);to=(43,43)]
out.print(userInfo.getUserId());
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(43,45);to=(44,8)]
out.write("</td>\r\n <td>");
// end
// begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(44,11);to=(44,33)]
out.print(userInfo.getUserName());
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(44,35);to=(45,8)]
out.write("</td>\r\n <td>");
// end
// begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(45,11);to=(45,32)]
out.print(userInfo.getUserAge());
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(45,34);to=(46,8)]
out.write("</td>\r\n <td>");
// end
// begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(46,11);to=(46,39)]
out.print(userInfo.getUserProfession());
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(46,41);to=(47,73)]
out.write("</td>\r\n <td><div align=\"center\"><a href=\"userinfoservlet?usermethod=3&userId=");
// end
// begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(47,76);to=(47,96)]
out.print(userInfo.getUserId());
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(47,98);to=(48,35)]
out.write("\">修改</a> \r\n<a href=\"javascript:projectDelete('");
// end
// begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(48,38);to=(48,58)]
out.print(userInfo.getUserId());
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(48,60);to=(50,0)]
out.write("')\">删除</a></div></td>\r\n </tr>\r\n");
// end
// begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(50,2);to=(50,3)]
}
// end
// HTML // begin [file="/WebApplication/webApplication/selectUserInfo.jsp";from=(50,5);to=(55,0)]
out.write("\r\n</table>\r\n<p align=\"center\" class=\"style1\"><a href=\"insertUserInfo.jsp\">添加用户信息</a></p>\r\n</body>\r\n</html>\r\n");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -