search_jsp.java
来自「介绍了j2ee开发常用的学习知识,如servlet,javamail,EJB等知」· Java 代码 · 共 261 行
JAVA
261 行
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class search_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_fmt_requestEncoding_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_x_parse_var_scope;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_import_url_charEncoding_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_x_forEach_select;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_x_out_select_nobody;
private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_fmt_requestEncoding_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_x_parse_var_scope = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_import_url_charEncoding_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_x_forEach_select = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_x_out_select_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_fmt_requestEncoding_value_nobody.release();
_jspx_tagPool_x_parse_var_scope.release();
_jspx_tagPool_c_import_url_charEncoding_nobody.release();
_jspx_tagPool_x_forEach_select.release();
_jspx_tagPool_x_out_select_nobody.release();
}
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;
String resourceInjectorClassName = config.getInitParameter("com.sun.appserv.jsp.resource.injector");
if (resourceInjectorClassName != null) {
_jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) Class.forName(resourceInjectorClassName).newInstance();
_jspx_resourceInjector.setContext(application);
}
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
if (_jspx_meth_fmt_requestEncoding_0(_jspx_page_context))
return;
out.write('\n');
out.write('\n');
if (_jspx_meth_x_parse_0(_jspx_page_context))
return;
out.write("\n");
out.write("\n");
out.write("<FORM method=\"POST\" action=\"detail.jsp\">\n");
out.write("\n");
out.write(" 选择感兴趣的图书:</br>\n");
out.write("\n");
out.write(" <select name=\"bookname\">\n");
out.write("\n");
out.write(" ");
if (_jspx_meth_x_forEach_0(_jspx_page_context))
return;
out.write("\n");
out.write("\n");
out.write(" </select>\n");
out.write("\n");
out.write(" <input type=\"submit\" value=\"查看\">\n");
out.write("\n");
out.write("</FORM>\n");
out.write("\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);
}
}
private boolean _jspx_meth_fmt_requestEncoding_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:requestEncoding
org.apache.taglibs.standard.tag.rt.fmt.RequestEncodingTag _jspx_th_fmt_requestEncoding_0 = (org.apache.taglibs.standard.tag.rt.fmt.RequestEncodingTag) _jspx_tagPool_fmt_requestEncoding_value_nobody.get(org.apache.taglibs.standard.tag.rt.fmt.RequestEncodingTag.class);
_jspx_th_fmt_requestEncoding_0.setPageContext(_jspx_page_context);
_jspx_th_fmt_requestEncoding_0.setParent(null);
_jspx_th_fmt_requestEncoding_0.setValue("GB2312");
int _jspx_eval_fmt_requestEncoding_0 = _jspx_th_fmt_requestEncoding_0.doStartTag();
if (_jspx_th_fmt_requestEncoding_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_fmt_requestEncoding_value_nobody.reuse(_jspx_th_fmt_requestEncoding_0);
return true;
}
_jspx_tagPool_fmt_requestEncoding_value_nobody.reuse(_jspx_th_fmt_requestEncoding_0);
return false;
}
private boolean _jspx_meth_x_parse_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// x:parse
org.apache.taglibs.standard.tag.rt.xml.ParseTag _jspx_th_x_parse_0 = (org.apache.taglibs.standard.tag.rt.xml.ParseTag) _jspx_tagPool_x_parse_var_scope.get(org.apache.taglibs.standard.tag.rt.xml.ParseTag.class);
_jspx_th_x_parse_0.setPageContext(_jspx_page_context);
_jspx_th_x_parse_0.setParent(null);
_jspx_th_x_parse_0.setVar("book");
_jspx_th_x_parse_0.setScope("application");
int _jspx_eval_x_parse_0 = _jspx_th_x_parse_0.doStartTag();
if (_jspx_eval_x_parse_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_x_parse_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_x_parse_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_x_parse_0.doInitBody();
}
do {
out.write("\n");
out.write("\n");
out.write(" ");
if (_jspx_meth_c_import_0((javax.servlet.jsp.tagext.JspTag) _jspx_th_x_parse_0, _jspx_page_context))
return true;
out.write('\n');
out.write('\n');
int evalDoAfterBody = _jspx_th_x_parse_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_x_parse_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = _jspx_page_context.popBody();
}
if (_jspx_th_x_parse_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_x_parse_var_scope.reuse(_jspx_th_x_parse_0);
return true;
}
_jspx_tagPool_x_parse_var_scope.reuse(_jspx_th_x_parse_0);
return false;
}
private boolean _jspx_meth_c_import_0(javax.servlet.jsp.tagext.JspTag _jspx_th_x_parse_0, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:import
org.apache.taglibs.standard.tag.rt.core.ImportTag _jspx_th_c_import_0 = (org.apache.taglibs.standard.tag.rt.core.ImportTag) _jspx_tagPool_c_import_url_charEncoding_nobody.get(org.apache.taglibs.standard.tag.rt.core.ImportTag.class);
_jspx_th_c_import_0.setPageContext(_jspx_page_context);
_jspx_th_c_import_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_x_parse_0);
_jspx_th_c_import_0.setUrl("book.xml");
_jspx_th_c_import_0.setCharEncoding("GB2312");
int[] _jspx_push_body_count_c_import_0 = new int[] { 0 };
try {
int _jspx_eval_c_import_0 = _jspx_th_c_import_0.doStartTag();
if (_jspx_th_c_import_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
return true;
}
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_import_0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_import_0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_import_0.doFinally();
_jspx_tagPool_c_import_url_charEncoding_nobody.reuse(_jspx_th_c_import_0);
}
return false;
}
private boolean _jspx_meth_x_forEach_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// x:forEach
org.apache.taglibs.standard.tag.common.xml.ForEachTag _jspx_th_x_forEach_0 = (org.apache.taglibs.standard.tag.common.xml.ForEachTag) _jspx_tagPool_x_forEach_select.get(org.apache.taglibs.standard.tag.common.xml.ForEachTag.class);
_jspx_th_x_forEach_0.setPageContext(_jspx_page_context);
_jspx_th_x_forEach_0.setParent(null);
_jspx_th_x_forEach_0.setSelect("$book/books/book");
int[] _jspx_push_body_count_x_forEach_0 = new int[] { 0 };
try {
int _jspx_eval_x_forEach_0 = _jspx_th_x_forEach_0.doStartTag();
if (_jspx_eval_x_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\n");
out.write("\n");
out.write(" <option>");
if (_jspx_meth_x_out_0((javax.servlet.jsp.tagext.JspTag) _jspx_th_x_forEach_0, _jspx_page_context, _jspx_push_body_count_x_forEach_0))
return true;
out.write("</option>\n");
out.write("\n");
out.write(" ");
int evalDoAfterBody = _jspx_th_x_forEach_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_x_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
return true;
}
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_x_forEach_0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_x_forEach_0.doCatch(_jspx_exception);
} finally {
_jspx_th_x_forEach_0.doFinally();
_jspx_tagPool_x_forEach_select.reuse(_jspx_th_x_forEach_0);
}
return false;
}
private boolean _jspx_meth_x_out_0(javax.servlet.jsp.tagext.JspTag _jspx_th_x_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_x_forEach_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// x:out
org.apache.taglibs.standard.tag.rt.xml.ExprTag _jspx_th_x_out_0 = (org.apache.taglibs.standard.tag.rt.xml.ExprTag) _jspx_tagPool_x_out_select_nobody.get(org.apache.taglibs.standard.tag.rt.xml.ExprTag.class);
_jspx_th_x_out_0.setPageContext(_jspx_page_context);
_jspx_th_x_out_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_x_forEach_0);
_jspx_th_x_out_0.setSelect("name");
int _jspx_eval_x_out_0 = _jspx_th_x_out_0.doStartTag();
if (_jspx_th_x_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_x_out_select_nobody.reuse(_jspx_th_x_out_0);
return true;
}
_jspx_tagPool_x_out_select_nobody.reuse(_jspx_th_x_out_0);
return false;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?