?? index_jsp.java
字號(hào):
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("網(wǎng)上作業(yè)提交系統(tǒng)\r\n");
out.write("</title>\r\n");
out.write("</head>\r\n");
out.write("<h1 align=\"center\">歡迎登陸信息與計(jì)算科學(xué)</h1>\r\n");
out.write("<h1 align=\"center\">網(wǎng)上作業(yè)提交系統(tǒng)</h1>\r\n");
out.write("<form id=\"stuLoginForm\" name=\"stuLoginForm\" method=\"post\" action=\"./stuctrol\" onSubmit=\"return validateLogin1();\">\r\n");
out.write("<p>學(xué)生登陸: \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>學(xué) 號(hào): <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>教務(wù)管理員登陸: \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>本系統(tǒng)應(yīng)用技術(shù):jsp,sevlet,java,j2ee,MVC構(gòu)架</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);
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -