📄 addborrower_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.util.List;
import cn.edu.jmu.beans.Privilege;
public final class addBorrower_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("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
if (request.getHeader("referer") == null) {
response.sendRedirect("adminIndex.jsp");
}
List result = (List) request.getAttribute("result");
out.write("\r\n");
out.write("<html>\r\n");
out.write(" <head> \r\n");
out.write(" <title>增加借阅者</title>\r\n");
out.write(" </head>\r\n");
out.write(" <body>\r\n");
out.write("\t<p align=\"center\"><img src=\"image/dbz.jpg\" width=\"771\" height=\"116\"></p>\r\n");
out.write(" <h1 align=\"center\" class=\"STYLE4\">输入借阅者信息</h1>\r\n");
out.write(" <form id=\"form1\" name=\"form1\" method=\"post\" action=\"/libraryMIS/addBorrower\">\r\n");
out.write(" <table align=\"center\" border=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <th scope=\"row\">账号:</th>\r\n");
out.write(" <td>\r\n");
out.write(" <label>");
out.print(request.getAttribute("brid"));
out.write("</label>\r\n");
out.write(" <input type=\"hidden\" name=\"brid\" value=\"");
out.print(request.getAttribute("brid"));
out.write("\" />\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <th scope=\"row\">密码:</th>\r\n");
out.write(" <td>\r\n");
out.write(" <input type=\"password\" name=\"pswd\" />\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <th scope=\"row\">姓名:</th>\r\n");
out.write(" <td>\r\n");
out.write(" <input type=\"text\" name=\"uname\" />\r\n");
out.write(" </td> \r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <th scope=\"row\">权限类型:</th>\r\n");
out.write(" <td>\r\n");
out.write(" <select name=\"ptype\" >\r\n");
out.write(" ");
for (int i = 0; i < result.size(); i++) {
Privilege privilege = (Privilege) result.get(i);
out.println("<option>" + privilege.getPtype() +
"</option>");
}
out.write(" \r\n");
out.write(" </select>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <th scope=\"row\">地址:</th>\r\n");
out.write(" <td>\r\n");
out.write(" <input type=\"text\" name=\"address\" />\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <th scope=\"row\">Email:</th>\r\n");
out.write(" <td>\r\n");
out.write(" <input type=\"text\" name=\"email\" />\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <th scope=\"row\">学院:</th>\r\n");
out.write(" <td>\r\n");
out.write(" <input type=\"text\" name=\"college\" />\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td scope=\"row\" colspan=\"2\" align=\"center\">\r\n");
out.write(" <input type=\"submit\" name=\"Submit\" value=\"增加\" /> \r\n");
out.write(" <input type=\"reset\" name=\"Submit2\" value=\"重写\" />\r\n");
out.write(" </td>\r\n");
out.write(" <td><a href=\"borrower.jsp\">返回</a></td> \r\n");
out.write(" </tr> \r\n");
out.write(" </table>\r\n");
out.write(" </form> \r\n");
out.write(" </body>\r\n");
out.write("</html>\r\n");
out.write("\r\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 + -