📄 bookstore_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import mypack.*;
import java.util.Properties;
public final class bookstore_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
public String convert(String s){
try{
return new String(s.getBytes("ISO-8859-1"),"GB2312");
}catch(Exception e){return null;}
}
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(2);
_jspx_dependants.add("/common.jsp");
_jspx_dependants.add("/banner.jsp");
}
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,
"errorpage.jsp", 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');
out.write('\n');
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
mypack.BookDB bookDB = null;
synchronized (application) {
bookDB = (mypack.BookDB) _jspx_page_context.getAttribute("bookDB", PageContext.APPLICATION_SCOPE);
if (bookDB == null){
bookDB = new mypack.BookDB();
_jspx_page_context.setAttribute("bookDB", bookDB, PageContext.APPLICATION_SCOPE);
}
}
out.write("\r\n");
out.write("\r\n");
out.write('\r');
out.write('\n');
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head><title>Bookstore</title></head>\r\n");
out.write("\r\n");
out.write("<body>\r\n");
out.write("<img src=\"logo.bmp\" >\r\n");
out.write("<hr>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<center>\r\n");
out.write("<p><b><a href=\"");
out.print(request.getContextPath());
out.write("/catalog.jsp\">察看所有书目</a></b>\r\n");
out.write("\r\n");
out.write("<FORM action=bookdetails.jsp method=\"POST\">\r\n");
out.write("<h3>请输入查询信息</h3>\r\n");
out.write("<b>书的编号:</b>\r\n");
out.write("<input type=\"text\" size=\"20\" name=\"bookId\" value=\"\" ><br><br>\r\n");
out.write("<center><input type=submit value=\"查询\"></center>\r\n");
out.write("</form>\r\n");
out.write("</center>\r\n");
out.write("\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 + -