📄 insertbooksort_jsp.java
字号:
package org.apache.jsp.bookSort;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.util.List;
import com.actionForm.PlaceForm;
public final class insertBookSort_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List 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,
"", 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");
com.dao.PlaceDao placeDao = null;
synchronized (request) {
placeDao = (com.dao.PlaceDao) _jspx_page_context.getAttribute("placeDao", PageContext.REQUEST_SCOPE);
if (placeDao == null){
placeDao = new com.dao.PlaceDao();
_jspx_page_context.setAttribute("placeDao", placeDao, PageContext.REQUEST_SCOPE);
}
}
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>科院图书管理系统――图书设置</title>\r\n");
out.write("</head>\r\n");
String sortNumber=(String)request.getAttribute("sortNumber");
out.write("\r\n");
out.write("<body>\r\n");
out.write("<div align=\"center\">\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../topOne.jsp", out, true);
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../topTwo.jsp", out, true);
out.write("\r\n");
out.write("<table width=\"799\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"Images/upPlace.jpg\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"21\" class=\"word_black\"> 您当前的位置――图书设置――图书类别管理</td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("<table width=\"799\" height=\"28\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"Images/operationOne.jpg\">\r\n");
out.write(" <tr align=\"center\">\r\n");
out.write(" <td><span class=\"STYLE4\">添加图书类别</span></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\r\n");
out.write("<table width=\"799\" height=\"457\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"Images/operationTwo.jpg\" >\r\n");
out.write(" <tr>\r\n");
out.write(" <td valign=\"top\" ><div align=\"center\"><br>\r\n");
out.write(" <form name=\"form\" method=\"post\" action=\"\" onSubmit=\"return addBookSort()\">\r\n");
out.write(" <table width=\"400\" height=\"50\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\" bordercolordark=\"#819BBC\" bordercolorlight=\"#FFFFFF\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"99\" height=\"30\" align=\"center\" bgcolor=\"#83B9FF\" class=\"word_white\">类 别 编 号</td>\r\n");
out.write(" <td width=\"295\"> ");
out.print(sortNumber);
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"30\" align=\"center\" bgcolor=\"#83B9FF\" class=\"word_white\">类别存放位置</td>\r\n");
out.write(" <td> \r\n");
out.write(" <select name=\"placeName\" style=\"background:#00FFFF\">\r\n");
out.write(" <option>请选择</option>\r\n");
out.write(" ");
List list=placeDao.selectPlace();
for(int i=0;i<list.size();i++){
PlaceForm form=(PlaceForm)list.get(i);
out.write("\r\n");
out.write(" <option value=\"");
out.print(form.getPlaceName());
out.write('"');
out.write('>');
out.print(form.getPlaceName());
out.write("</option>\r\n");
out.write(" ");
}
out.write("\r\n");
out.write("\t\t\t</select>\r\n");
out.write("\r\n");
out.write("\t\t\t</td>\r\n");
out.write(" </tr>\r\n");
out.write("\t\t <tr>\r\n");
out.write(" <td height=\"30\" align=\"center\" bgcolor=\"#83B9FF\" class=\"word_white\">类 别 名 称</td>\r\n");
out.write(" <td> <input name=\"sortName\" type=\"text\" size=\"35\"></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table><br>\r\n");
out.write("\r\n");
out.write(" <input type=\"submit\" name=\"Submit2\" value=\"添加\"> \r\n");
out.write(" <input type=\"reset\" name=\"Submit\" value=\"清除\"> \r\n");
out.write(" <input type=\"button\" name=\"back\" value=\"返回\" onClick=\"javascript:history.go(-1);\">\r\n");
out.write(" </form>\r\n");
out.write(" </div></td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../bottom.jsp", out, true);
out.write("\r\n");
out.write("</div>\r\n");
out.write("</body>\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);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -