📄 login_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
}
public void _jspDestroy() {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
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 {
response.setContentType("text/html;charset=UTF-8");
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("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n");
out.write("\"http://www.w3.org/TR/html4/loose.dtd\">\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(" <center>\n");
out.write(" <br>\n");
out.write(" <h1>留言管理系统——JSP + MVC + DAO实现</h1>\n");
out.write(" <hr>\n");
out.write(" <br>\n");
out.write(" ");
out.write("\n");
out.write(" ");
if (request.getAttribute("errors") != null) { // 有错误,要进行打印输出 List all = (List) request.getAttribute("errors"); Iterator iter = all.iterator(); while (iter.hasNext()) {
out.write("\n");
out.write(" <li>");
out.print(iter.next());
out.write("</li>\n");
out.write(" ");
} }
out.write("\n");
out.write(" <form action=\"LoginServlet\" method=\"POST\">\n");
out.write(" <table border=\"0\">\n");
out.write(" <thead>\n");
out.write(" <tr>\n");
out.write(" <th>用户登陆页面</th>\n");
out.write(" <th></th>\n");
out.write(" </tr>\n");
out.write(" </thead>\n");
out.write(" <tbody>\n");
out.write(" <tr>\n");
out.write(" <td>用户ID:</td>\n");
out.write(" <td><input type=\"text\" name=\"p_id\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${person.p_id}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" /></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td>密 码:</td>\n");
out.write(" <td><input type=\"password\" name=\"p_password\" value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${person.p_password}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\" /></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td></td>\n");
out.write(" <td><input type=\"submit\" value=\"登陆\" name=\"submit\" />\n");
out.write(" <input type=\"reset\" value=\"重置\" name=\"reset\" />\n");
out.write(" <a href=\"register.jsp\">注册</a></td>\n");
out.write(" </tr>\n");
out.write(" </tbody>\n");
out.write(" </table>\n");
out.write(" </form>\n");
out.write(" </center>\n");
out.write(" </body>\n");
out.write("</html>\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -