📄 login_0002ejsp_jsp.java
字号:
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class login_0002ejsp_jsp extends HttpJspBase {
static {
}
public login_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=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"errorpage.jsp", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/login.jsp";from=(0,113);to=(147,2)]
out.write("\r\n\t<html>\r\n\t<head>\r\n\t<STYLE>A.menuitem {\r\n COLOR: menutext; TEXT-DECORATION: none\r\n}\r\nA.menuitem:hover {\r\n COLOR: highlighttext; BACKGROUND-COLOR: highlight\r\n}\r\nDIV.contextmenu {\r\n BORDER-RIGHT: 2px outset; BORDER-TOP: 2px outset; Z-INDEX: 999; VISIBILITY: hidden; BORDER-LEFT: 2px outset; BORDER-BOTTOM: 2px outset; POSITION: absolute; BACKGROUND-COLOR: buttonface\r\n}\r\n\r\n</STYLE>\r\n<SCRIPT language=JavaScript>\r\nfunction Year_Month(){ \r\n var now = new Date(); \r\n var yy = now.getYear(); \r\n var mm = now.getMonth()+1; \r\n var cl = '<font color=\"#0000df\">'; \r\n if (now.getDay() == 0) cl = '<font color=\"#c00000\">'; \r\n if (now.getDay() == 6) cl = '<font color=\"#00c000\">'; \r\n return(cl + yy + '年' + mm + '月</font>'); }\r\n function Date_of_Today(){ \r\n var now = new Date(); \r\n var cl = '<font color=\"#ff0000\">'; \r\n if (now.getDay() == 0) cl = '<font color=\"#c00000\">'; \r\n if (now.getDay() == 6) cl = '<font color=\"#00c000\">'; \r\n return(cl + now.getDate() + '</font>'); }\r\n function Day_of_Today(){ \r\n var day = new Array(); \r\n day[0] = \"星期日\"; \r\n day[1] = \"星期一\"; \r\n day[2] = \"星期二\"; \r\n day[3] = \"星期三\"; \r\n day[4] = \"星期四\"; \r\n day[5] = \"星期五\"; \r\n day[6] = \"星期六\"; \r\n var now = new Date(); \r\n var cl = '<font color=\"#0000df\">'; \r\n if (now.getDay() == 0) cl = '<font color=\"#c00000\">'; \r\n if (now.getDay() == 6) cl = '<font color=\"#00c000\">'; \r\n return(cl + day[now.getDay()] + '</font>'); }\r\n function CurentTime(){ \r\n var now = new Date(); \r\n var hh = now.getHours(); \r\n var mm = now.getMinutes(); \r\n var ss = now.getTime() % 60000; \r\n ss = (ss - (ss % 1000)) / 1000; \r\n var clock = hh+':'; \r\n if (mm < 10) clock += '0'; \r\n clock += mm+':'; \r\n if (ss < 10) clock += '0'; \r\n clock += ss; \r\n return(clock); } \r\nfunction refreshCalendarClock(){ \r\ndocument.all.calendarClock1.innerHTML = Year_Month(); \r\ndocument.all.calendarClock2.innerHTML = Date_of_Today(); \r\ndocument.all.calendarClock3.innerHTML = Day_of_Today(); \r\ndocument.all.calendarClock4.innerHTML = CurentTime(); }\r\n var webUrl = webUrl; \r\ndocument.write('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>'); \r\ndocument.write('<table id=\"CalendarClockFreeCode\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"60\" height=\"70\" ');\r\ndocument.write('style=\"position:absolute;visibility:hidden\" bgcolor=\"#eeeeee\">');\r\ndocument.write('<tr><td align=\"center\"><font ');\r\ndocument.write('style=\"cursor:hand;color:#ff0000;font-family:宋体;font-size:14pt;line-height:120%\" ');\r\nif (webUrl != 'netflower'){ \r\n document.write('</td></tr><tr><td align=\"center\"><font ');\r\n document.write('style=\"cursor:hand;color:#2000ff;font-family:宋体;font-size:9pt;line-height:110%\" ');\r\n} \r\ndocument.write('</td></tr></table>'); \r\ndocument.write('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"61\" bgcolor=\"#C0C0C0\" height=\"70\">');\r\ndocument.write('<tr><td valign=\"top\" width=\"100%\" height=\"100%\">');\r\ndocument.write('<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" width=\"58\" bgcolor=\"#FEFEEF\" height=\"67\">');\r\ndocument.write('<tr><td align=\"center\" width=\"100%\" height=\"100%\" >');\r\ndocument.write('<font id=\"calendarClock1\" style=\"font-family:宋体;font-size:7pt;line-height:120%\"> </font><br>');\r\ndocument.write('<font id=\"calendarClock2\" style=\"color:#ff0000;font-family:Arial;font-size:14pt;line-height:120%\"> </font><br>');\r\ndocument.write('<font id=\"calendarClock3\" style=\"font-family:宋体;font-size:9pt;line-height:120%\"> </font><br>');\r\ndocument.write('<font id=\"calendarClock4\" style=\"color:#100080;font-family:宋体;font-size:8pt;line-height:120%\"><b> </b></font>');\r\ndocument.write('</td></tr></table>');\r\ndocument.write('</td></tr></table>'); \r\ndocument.write('</td></tr></table>'); \r\nsetInterval('refreshCalendarClock()',1000);\r\n</SCRIPT>\r\n<script language=\"javascript\">\r\n<!--\r\nfunction makearray(size)\r\n{\r\nthis.length=size;\r\nfor(i=1;i<=size;i++)\r\n{\r\nthis[i]=0\r\n}\r\nreturn this;\r\n}\r\nmsg=new makearray(3)\r\nmsg[1]=\"你好,欢迎使用学生课绩管理系统!!!\"\r\nmsg[2]=\"请您选择用户类新,输入正确的用户名,密码!!\";\r\nmsg[3]=\"谢谢您的使用!!!\"\r\ninterval = 100;\r\nseq = 0;\r\ni=1;\r\nfunction Scroll() {\r\ndocument.tmForm.tmText.value = msg[i].substring(0, seq+1);\r\nseq++;\r\nif ( seq >= msg[i].length ) { seq = 0 ;i++;interval=900};\r\nif(i>3){i=1};\r\nwindow.setTimeout(\"Scroll();\", interval );interval=100\r\n} ;\r\n//-->\r\n</script>\r\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"; charset=gb2312\">\r\n\t<title>登陆</title>\r\n <SCRIPT Language = javascript>\r\n <!--\r\n //下面的副程序将执行资料检查\r\n function isValid()\r\n {\t\r\n \t//下面的if判断语句将检查是否输入帐号资料\r\n \tif(frmLogin.id.value == \"\")\r\n \t{\t\r\n \t\twindow.alert(\"您必须完成帐号的输入!\"); \r\n \t\t//显示错误信息\r\n \t\tdocument.frmLogin.elements(0).focus();\r\n \t\t//将光标移至帐号输入栏\t\t\r\n \t\treturn false;\r\n \t}\r\n \t\r\n \t//下面的if判断语句将检查是否输入帐号密码\r\n \tif(frmLogin.password.value == \"\")\r\n \t{\r\n \t\twindow.alert(\"您必须完成密码的输入!\");\r\n \t\t//显示错误信息\r\n \t\tdocument.frmLogin.elements(1).focus();\r\n \t\t//将光标移至密码输入栏\r\n \t\treturn false; //离开函数\r\n \t}\r\n \r\n \tfrmLogin.submit(); //送出表单中的资料\r\n }\r\n -->\r\n </SCRIPT>\t\t\r\n<body bgcolor=\"#0099FF\" OnLoad=\"Scroll()\">\r\n<form name=\"tmForm\">\r\n<input type=\"Text\" name=\"tmText\" size=\"40\">\r\n</form>\r\n<p> \r\n ");
// end
// begin [file="/login.jsp";from=(147,4);to=(150,1)]
String getmessage = (String) session.getAttribute("error");
if (getmessage==null) {getmessage="";}
// end
// HTML // begin [file="/login.jsp";from=(150,3);to=(151,24)]
out.write("\r\n <p1><font color=\"red\">");
// end
// begin [file="/login.jsp";from=(151,27);to=(151,37)]
out.print(getmessage);
// end
// HTML // begin [file="/login.jsp";from=(151,39);to=(191,2)]
out.write("</font></p1></p>\r\n<p align=\"center\"><font color=\"#33FF00\" size=\"+4\" face=\"华文行楷\">学生课绩管理系统</font></p>\r\n<form name=\"frmLogin\" method=\"post\" action=\"http://localhost:8080/test/login_confirm\" onSubmit=\"return isValid(this);\">\r\n <p> \r\n <div align=\"center\"> \r\n <table width=\"47%\" height=\"232\" border=1 align=\"center\" >\r\n <tr > \r\n <td height=\"44\" colspan=\"2\">\r\n<div align=\"center\"><font color=\"#FFFFFF\" size=\"+2\" face=\"华文行楷\">请你输入</font></div></td>\r\n </tr>\r\n <tr > \r\n <td><div align=\"center\"><font color=\"#FFFFFF\"><strong>用户</strong></font><font color=\"#FFFFFF\"><strong>:</strong></font></div></td>\r\n <td><input name=\"kind\" type=\"radio\" value=\"student\" checked >\r\n <font color=\"#FFFFFF\" size=\"+2\" face=\"华文行楷\">学生 </font> \r\n <input type=\"radio\" name=\"kind\" value=\"teacher\">\r\n <font color=\"#FFFFFF\" size=\"+2\" face=\"华文行楷\"> 教师 </font>\r\n<input type=\"radio\" name=\"kind\" value=\"admin\">\r\n <font color=\"#FFFFFF\" size=\"+2\" face=\"华文行楷\">管理员</font></td>\r\n </tr>\r\n <tr > \r\n <td width=\"27%\"><div align=\"center\"><strong><font color=\"#FFFFFF\">登陆名</font><font color=\"#FFFFFF\">:</font></strong></div></td>\r\n <td width=\"73%\"><input name=\"id\" type=\"text\" id=\"id\" size=\"20\" maxlength=\"20\"></td>\r\n </tr>\r\n <tr> \r\n <td><div align=\"center\"><strong> <font color=\"#FFFFFF\">密码:</font></strong></div></td>\r\n <td><input name=\"password\" type=\"password\" id=\"password\" size=\"8\" maxlength=\"8\"></td>\r\n </tr>\r\n <tr > \r\n <td colspan=\"2\"><div align=\"center\"> \r\n <input type=\"submit\" name=\"Submit\" value=\"登陆\">\r\n </div></td>\r\n </tr>\r\n </table>\r\n <table>\r\n </table> \r\n </div>\r\n</form>\r\n</body>\r\n \t</html>\r\n \t\r\n \t");
// 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 + -