📄 managerlog_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import bean.logBean;
import bean.LogAction;
public final class managerLog_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=GBK");
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\r\n\r\n");
String strdate = null;
String fs=null;
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
out.write("\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n<html>\r\n\t<head>\r\n\t\t<base href=\"");
out.print(basePath);
out.write("\">\r\n\r\n\t\t<title>安徽网益科技有限公司---日志管理</title>\r\n\r\n\t\t<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n\t\t<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n\t\t<meta http-equiv=\"expires\" content=\"0\">\r\n\t\t<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n\t\t<meta http-equiv=\"description\" content=\"This is my page\">\r\n\t\t<!--\r\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n\t-->\r\n\r\n\t</head>\r\n\r\n\t<body>\r\n\t\t<center>\r\n\t\t\t<b>日志管理</b>\r\n\t\t</center>\r\n\t\t<hr>\r\n\t\t<table align=\"center\">\r\n\t\t\t<form action=\"checkServletLog\" name=\"from1\" method=\"post\"\r\n\t\t\t\tonsubmit=\"return check()\">\r\n\t\t\t<TR>\r\n\t\t\t\t<TD>\r\n\t\t\t\t\t查询条件:\r\n\t\t\t\t</TD>\r\n\t\t\t\t<td>\r\n\t\t\t\t\t<select name=\"select1\">\r\n\t\t\t\t\t\t");
for (int i = 0; i <= 20; i++) {
if (i < 10)
strdate = "200" + i;
else
strdate = "20" + i;
out.write("\r\n\t\t\t\t\t\t<option>\r\n\t\t\t\t\t\t\t");
out.print(strdate);
out.write("\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t");
}
out.write("\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t年\r\n\t\t\t\t\t<select name=\"select2\">\r\n\t\t\t\t\t\t");
for (int i = 1; i <= 12; i++) {
strdate = i + "";
out.write("\r\n\t\t\t\t\t\t<option>\r\n\t\t\t\t\t\t\t");
out.print(strdate);
out.write("\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t");
}
out.write("\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t月\r\n\t\t\t\t\t<select name=\"select3\">\r\n\t\t\t\t\t\t");
for (int i = 1; i <= 31; i++) {
strdate = i + "";
out.write("\r\n\t\t\t\t\t\t<option>\r\n\t\t\t\t\t\t\t");
out.print(strdate);
out.write("\r\n\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t");
}
out.write("\r\n\t\t\t\t\t</select>\r\n\t\t\t\t\t日\r\n\t\t\t\t\t<input type=\"submit\" name=\"Submit1\" value=\"查询\">\r\n\t\t\t\t</td>\r\n\t\t\t</TR>\r\n\t\t\t</form>\r\n\t\t</table>\r\n\t\t<table align=\"center\">\r\n\t\t\t<tr bgcolor=\"#006699\" bgcolordark=\"#fcfcfc\" bgcolorLight=\"#ffffff\">\r\n\t\t\t\t<td width=\"15%\">\r\n\t\t\t\t\t用户名\r\n\t\t\t\t</td>\r\n\t\t\t\t<td width=\"30%\">\r\n\t\t\t\t\t动作事件\r\n\t\t\t\t</td>\r\n\t\t\t\t<td width=\"30%\">\r\n\t\t\t\t\t操作模块\r\n\t\t\t\t</td>\r\n\t\t\t\t<td width=\"15%\">\r\n\t\t\t\t\t操作时间\r\n\t\t\t\t</td>\r\n\t\t\t\t<td width=\"10%\">\r\n\t\t\t\t\t操作\r\n\t\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t\t");
if (fs!=null) {
out.write("\r\n\t\t\t<tr>\r\n\t\t\t\t<td align=\"center\">\r\n\t\t\t\t\t没有查到要查的信息\r\n\t\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t\t");
} else {
logBean bean=null;
ArrayList list =null;
LogAction action = new LogAction();
if(request.getAttribute("alist")!=null)
{
list=(ArrayList) request.getAttribute("alist");
fs="search";
}
else
{
list = action.getLogAll();
}
for (int i = 0; i < list.size(); i++) {
bean = (logBean) list.get(i);
int userid = bean.getUserId();
out.write("\r\n\t\t\t<tr bgcolor=\"#f0f0f0\" bgcolordark=\"#f0f0f0\" bgcolorLight=\"#ffffff\">\r\n\t\t\t\t<td>\r\n\t\t\t\t\t");
out.print(action.getUserName(userid));
out.write("\r\n\t\t\t\t</td>\r\n\t\t\t\t<td>\r\n\t\t\t\t\t");
out.print(bean.getActionLog());
out.write("\r\n\t\t\t\t</td>\r\n\t\t\t\t<td>\r\n\t\t\t\t\t");
out.print(bean.getActPower());
out.write("\r\n\t\t\t\t</td>\r\n\t\t\t\t<td>\r\n\t\t\t\t\t");
out.print(bean.getActTime());
out.write("\r\n\t\t\t\t</td>\r\n\t\t\t\t<td>\r\n\t\t\t\t\t<a href=\"delServletLog?id=");
out.print(bean.getLogId());
out.write("\">删除</a>\r\n\t\t\t\t</td>\r\n\t\t\t</tr>\r\n\t\t\t");
}
}
out.write("\r\n\t\t</table>\r\n\t</body>\r\n</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 + -