📄 login_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
public Object 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("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("<html>\n");
out.write(" <head>\n");
out.write(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
out.write(" <title>登录界面</title>\n");
out.write(" </head>\n");
out.write(" <body>\n");
out.write(" <form action=\"AdminServlet\" name=\"mtform\" method=\"post\">\n");
out.write(" <table align=\"center\" width=\"100%\" bgcolor=\"dddddd\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\">\n");
out.write(" <tr>\n");
out.write(" <td>帐号:</td>\n");
out.write(" <td><input type=\"text\" name=\"username\" size=\"40\"></td>\n");
out.write(" </tr> \n");
out.write(" <tr>\n");
out.write(" <td>密码:</td>\n");
out.write(" <td><input type=\"password\" name=\"password\" size=\"40\"></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <input type=\"hidden\" value=\"login\" name=\"action\">\n");
out.write(" <td align=\"right\"><input type=\"submit\" value=\"提交\"></td>\n");
out.write(" <td align=\"left\"><input type=\"reset\" value=\"重填\"></td>\n");
out.write(" \n");
out.write(" </tr>\n");
out.write(" </table>\n");
out.write(" \n");
out.write(" </form>\n");
out.write("\n");
out.write(" \n");
out.write(" \n");
out.write(" </body>\n");
out.write(" ");
if(session.getAttribute("notlogin")!=null){ String templogin=(String)session.getAttribute("notlogin"); if(templogin.equals("loginfail")){ out.println("<hr>用户名或密码错误,请重新输入!"); }else if(templogin.equals("notlogin")){ out.println("<hr>你还没有登录,请先在此处登录!"); } session.setAttribute("notlogin",null); }else if(session.getAttribute("adminname")!=null){ String adminname=(String)session.getAttribute("adminname"); out.println("<hr>当前管理员:"+adminname); }
out.write("\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 + -