📄 index_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class index_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=GB2312");
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("<html>\r\n");
out.write("<head>\r\n");
out.write("<script type=\"\">\r\n");
out.write("\t\tfunction validateLogin1(){\r\n");
out.write("\t\tvar username1=stuLoginForm.stuid.value;\r\n");
out.write("\t\tvar password1=stuLoginForm.stupassword.value;\r\n");
out.write("\t\tif(username1.length==0){\r\n");
out.write("\t\t\talert(\"用户名不能为空!!!\");\r\n");
out.write("\t\t\tstuLoginForm.stuid.focus();\r\n");
out.write("\t\t\treturn false;\r\n");
out.write("\t\t}else if(password1.length==0){\r\n");
out.write("\t\t\talert(\"密码不能为空!!!\");\r\n");
out.write("\t\t\tstuLoginForm.stupassword.focus();\r\n");
out.write("\t\t\treturn false;\r\n");
out.write("\t\t}else{\r\n");
out.write("\t\t\tstuLoginForm.submit();\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("\t\tfunction validateLogin2(){\r\n");
out.write("\t\tvar username2=tLogin.teacherid.value;\r\n");
out.write("\t\tvar password2=tLogin.password.value;\r\n");
out.write("\t\tif(username2.length==0){\r\n");
out.write("\t\t\talert(\"用户名不能为空!!!\");\r\n");
out.write("\t\t\ttLogin.teacherid.focus();\r\n");
out.write("\t\t\treturn false;\r\n");
out.write("\t\t}else if(password2.length==0){\r\n");
out.write("\t\t\talert(\"密码不能为空!!!\");\r\n");
out.write("\t\t\ttLogin.password.focus();\r\n");
out.write("\t\t\treturn false;\r\n");
out.write("\t\t}else{\r\n");
out.write("\t\t\ttLogin.submit();\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("\t\tfunction validateLogin3(){\r\n");
out.write("\t\tvar username3=mLogin.username.value;\r\n");
out.write("\t\tvar password3=mLogin.password.value;\r\n");
out.write("\t\tif(username3.length==0){\r\n");
out.write("\t\t\talert(\"用户名不能为空!!!\");\r\n");
out.write("\t\t\tmLogin.username.focus();\r\n");
out.write("\t\t\treturn false;\r\n");
out.write("\t\t}else if(password3.length==0){\r\n");
out.write("\t\t\talert(\"密码不能为空!!!\");\r\n");
out.write("\t\t\tmLogin.password.focus();\r\n");
out.write("\t\t\treturn false;\r\n");
out.write("\t\t}else{\r\n");
out.write("\t\t\tmLogin.submit();\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("</script>\r\n");
out.write("<title>\r\n");
out.write("网上作业提交系统\r\n");
out.write("</title>\r\n");
out.write("</head>\r\n");
out.write("<h1 align=\"center\">欢迎登陆信息与计算科学</h1>\r\n");
out.write("<h1 align=\"center\">网上作业提交系统</h1>\r\n");
out.write("<form id=\"stuLoginForm\" name=\"stuLoginForm\" method=\"post\" action=\"./stuctrol\" onSubmit=\"return validateLogin1();\">\r\n");
out.write("<p>学生登陆: \t</p>\r\n");
out.write("<input type=\"hidden\" name=\"actionId\" value=\"stuLogin\">\r\n");
out.write(" <table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td><IMG src=\"img/admin_login_main.gif\" border=0 alt=\"\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td background=\"img/admin_login_bg.gif\" height=150>\r\n");
out.write("\t <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" height=25>学 号: <INPUT maxLength=20 size=15 name=\"stuid\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" height=25>密 码: <INPUT type=password maxLength=20 size=15 name=\"stupassword\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" height=25> <INPUT type=image src=\"img/admin_login_button.gif\" align=absMiddle border=0></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("\t </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><IMG src=\"img/admin_login_end.gif\" border=0></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("</form>\r\n");
out.write("<form name=\"tLogin\" id=\"tLogin\" method=\"post\" action=\"./teacherctrol\" onSubmit=\"return validateLogin2();\">\r\n");
out.write("<p>教师登陆: \t</p>\r\n");
out.write("<input type=\"hidden\" name=\"actionId\" value=\"tLogin\">\r\n");
out.write(" <table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td><IMG src=\"img/admin_login_main.gif\" border=0></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td background=\"img/admin_login_bg.gif\" height=150>\r\n");
out.write("\t <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" height=25>教师ID: <INPUT maxLength=20 size=15 name=\"teacherid\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" height=25> 密 码 : <INPUT type=password maxLength=20 size=15 name=\"password\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" height=25> <INPUT type=image src=\"img/admin_login_button.gif\" align=absMiddle border=0></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("\t </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><IMG src=\"img/admin_login_end.gif\" border=0></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("</form>\r\n");
out.write("<form name=\"mLogin\" id=\"mLogin\" method=\"post\" action=\"./menagerctrol\" onSubmit=\"return validateLogin3();\">\r\n");
out.write("<p>教务管理员登陆: \t</p>\r\n");
out.write("<input type=\"hidden\" name=\"actionId\" value=\"mLogin\">\r\n");
out.write(" <table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td><IMG src=\"img/admin_login_main.gif\" border=0></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td background=\"img/admin_login_bg.gif\" height=150>\r\n");
out.write("\t <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" height=25>管理员ID: <INPUT maxLength=20 size=15 name=\"username\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" height=25> 密 码 : <INPUT type=password maxLength=20 size=15 name=\"password\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" height=25> <INPUT type=image src=\"img/admin_login_button.gif\" align=absMiddle border=0></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("\t </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td><IMG src=\"img/admin_login_end.gif\" border=0></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("</form>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<p>本系统应用技术:jsp,sevlet,java,j2ee,MVC构架</p>\r\n");
out.write("<p>作者:秦效辉</p>\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 + -