📄 login_jsp.java
字号:
out.write("}\r\n");
out.write("function find(){\r\n");
out.write(" form1.submit();\r\n");
out.write("}\r\n");
out.write("</script>\r\n");
out.write("</html>\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>登录页面</title>\r\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\" />\r\n");
out.write("</head>\r\n");
out.write("<body bgcolor=\"#9999cc\">\r\n");
out.write("<center>\r\n");
out.write("<form method=\"post\" action=\"login\" onsubmit=\"return check()\">\r\n");
out.write(" <h5 align=\"left\" > <a href=\"index.jsp\">IT论坛</a>—>><a href=\"#\">登录</a></h5>\r\n");
out.write(" <br /><br /><br /><br />\r\n");
out.write(" <table width=\"50%\" border=\"1\" class=\"Table\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td>\r\n");
out.write(" <table width=\"90%\" align=\"center\" border=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td colspan=\"2\" style=\"color:red\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${message}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <th colspan=\"2\" align=\"center\" style=\"font-size:20px\" class=\"Td\">用户登录</th>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"right\" width=\"30%\" class=\"Td\">用户名:</td>\r\n");
out.write(" <td width=\"70%\"><input type=\"text\" name=\"username\" size=\"20\" onblur=\"checkname()\" /><input name=\"name\" readonly=\"readonly\" style=\"border:none;color:red\" class=\"Text\" value=\"*\" /></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"right\" width=\"30%\" class=\"Td\">密 码:</td>\r\n");
out.write(" <td width=\"70%\"><input type=\"password\" name=\"password\" size=\"21\" /><input name=\"pwd\" readonly=\"readonly\" style=\"border:none;color:red\" class=\"Text\" value=\"*\" /></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr><td> </td></tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td colspan=\"2\" align=\"center\">\r\n");
out.write(" <input type=\"submit\" value=\"会员登录\" class=\"button\" /> \r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td colspan=\"2\" align=\"center\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${mes}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write("</form>\r\n");
out.write("<br /><br /><br /><br /><br /><br />\r\n");
out.write("<table width=\"100%\" border=\"0\">\r\n");
out.write(" <tr style=\"font-size:12px\">\r\n");
out.write(" <td height=\"19\" align=\"center\" colspan=\"8\">| <a href=\"#\"\">设为首页</a> | <a href=\"javascript:window.external.addFavorite('http://rine56.51.com','本人博客')\">加入收藏</a> | <a href=\"mailto:bai189long@163.com\">联系站长</a> | <a href=\"showfriend\" target=\"_blank\">友情链接</a> | <a href=\"www.windows.com\" target=\"_blank\">版权申明</a> | <a href=\"adminlogin.jsp\" target=\"_blank\">管理论坛</a> |</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr style=\"font-size:15px\">\r\n");
out.write(" <td height=\"19\" align=\"center\" colspan=\"8\"> Copyright@2008 Corporation, All Rights Reserved 版权所有 IT技术论坛 </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("</center>\r\n");
out.write("</body>\r\n");
out.write("<script type=\"text/javascript\">\r\n");
out.write("var obj = document.all;\r\n");
out.write("function check(){\r\n");
out.write(" if(obj.username.value==\"\" || obj.username.value==null)\r\n");
out.write(" {\r\n");
out.write(" obj.name.value=\"用户名不能为空!\";\r\n");
out.write(" return false;\r\n");
out.write(" }\r\n");
out.write(" return true;\r\n");
out.write("}\r\n");
out.write("function checkname(){\r\n");
out.write(" if(obj.username.value==\"\" || obj.username.value==null)\r\n");
out.write(" {\r\n");
out.write(" obj.name.value=\"用户名不能为空!\";\r\n");
out.write(" }\r\n");
out.write(" else{\r\n");
out.write(" obj.name.value=\"*\";\r\n");
out.write(" }\r\n");
out.write("}\r\n");
out.write("</script>\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);
}
}
private boolean _jspx_meth_c_if_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(_jspx_page_context);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username==null}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("游客 ");
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
return false;
}
private boolean _jspx_meth_c_if_1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_1.setPageContext(_jspx_page_context);
_jspx_th_c_if_1.setParent(null);
_jspx_th_c_if_1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username!=null}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("<font color=\"red\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</font> \r\n");
out.write(" <a href=\"selectpersonalservlet?uname=");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" target=\"_blank\">个人信息</a> <a href=\"#\" onclick=\"parent.location='userexit'\">退出</a> \r\n");
out.write(" <a href=\"usertopic?username=");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${username}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" target=\"_blank\">个人发贴</a>\r\n");
out.write(" ");
int evalDoAfterBody = _jspx_th_c_if_1.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_1);
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -