📄 index_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import TiKuMS.*;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(2);
_jspx_dependants.add("/header.jsp");
_jspx_dependants.add("/footer.jsp");
}
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=GB2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"error.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("\n");
out.write("\n");
TiKuMS.LoginInfo loginInfo = null;
synchronized (session) {
loginInfo = (TiKuMS.LoginInfo) _jspx_page_context.getAttribute("loginInfo", PageContext.SESSION_SCOPE);
if (loginInfo == null){
loginInfo = new TiKuMS.LoginInfo();
_jspx_page_context.setAttribute("loginInfo", loginInfo, PageContext.SESSION_SCOPE);
}
}
out.write("\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n");
out.write(" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
out.write("\n");
out.write("<html>\n");
out.write(" <head>\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=GB2312\">\n");
out.write(" <title>阳光题库管理系统</title>\n");
out.write(" </head>\n");
out.write(" <body>\n");
out.write(" <table border=\"0\" align=\"center\">\n");
out.write(" <tr>\n");
out.write(" <td>");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("<div align=\"center\" title=\"header\">\n");
if(((LoginInfo)session.getAttribute("loginInfo")).isLogined()){ String userType=((LoginInfo)session.getAttribute("loginInfo")).getUserType();
out.write("\n");
out.write(" ");
out.print(((LoginInfo)session.getAttribute("loginInfo")).getUserName());
out.write("\n");
out.write(" | <a href=\"index.jsp\">首页</a>\n");
out.write(" | <a href=\"changePSW.jsp\">修改密码</a>\n");
out.write(" | <a href=\"logout.jsp\">退出</a>\n");
if(userType.compareTo("master")==0) {
out.write("\n");
out.write(" | <a href=\"masterManage.jsp\">管理员管理</a>\n");
out.write(" | <a href=\"subjectManage.jsp\">科目管理</a>\n");
out.write(" | <a href=\"teacherManage.jsp\">教师管理</a>\n");
}}else{
out.write("\n");
out.write(" 您尚未 登录 注册学生用户\n");
}
out.write("\n");
out.write("</div>");
out.write("</td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td>\n");
out.write(" <fieldset>\n");
out.write(" 系统公告\n");
out.write(" <div>\n");
out.write(" <ul>\n");
out.write(" <li>\n");
out.write(" 公告1\n");
out.write(" </li>\n");
out.write(" <li>\n");
out.write(" 公告1\n");
out.write(" </li>\n");
out.write(" <li>\n");
out.write(" 公告1\n");
out.write(" </li>\n");
out.write(" </ul>\n");
out.write(" </div>\n");
out.write(" </fieldset>\n");
out.write(" <br/>\n");
if(!loginInfo.isLogined()) {
out.write("\n");
out.write(" <fieldset>\n");
out.write(" 用户登录\n");
out.write(" <form name=\"loginForm\" action=\"login.jsp\" method=\"POST\">\n");
out.write(" <div>\n");
out.write(" <ul>\n");
out.write(" <li>\n");
out.write(" 帐号:<input type=\"text\" name=\"userName\" />\n");
out.write(" </li>\n");
out.write(" <li>\n");
out.write(" 密码:<input type=\"password\" name=\"password\" />\n");
out.write(" </li>\n");
out.write(" <li>\n");
out.write(" 用户类型:<select name=\"userType\">\n");
out.write(" <option value=\"student\">学生</option>\n");
out.write(" <option value=\"teacher\">教师</option>\n");
out.write(" <option value=\"master\">管理员</option>\n");
out.write(" </select>\n");
out.write(" <input type=\"submit\" value=\"登录\" />\n");
out.write(" </li>\n");
out.write(" </ul>\n");
out.write(" </div>\n");
out.write(" </form>\n");
out.write(" </fieldset>\n");
}
out.write("\n");
out.write(" </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td>");
out.write("\n");
out.write("\n");
out.write("<div align=\"center\">\n");
out.write(" 阳光题库管理系统<br/>\n");
out.write(" Powered by Lingda ?2006 \n");
out.write("</div>");
out.write("</td>\n");
out.write(" </tr>\n");
out.write(" </table>\n");
out.write(" </body>\n");
out.write("</html>\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 + -