?? update_jsp.java
字號(hào):
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class update_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_sql_setDataSource_var_url_scope_driver_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_var_test_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_catch_var;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_fmt_parseNumber_var_value;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_var_test;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_choose;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_when_test;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_set_var_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_sql_query_var_dataSource;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_sql_param_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_sql_update_dataSource;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_otherwise;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_sql_setDataSource_var_url_scope_driver_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_if_var_test_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_catch_var = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_fmt_parseNumber_var_value = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_if_var_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_choose = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_when_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_set_var_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_out_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_sql_query_var_dataSource = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_sql_param_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_sql_update_dataSource = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_otherwise = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_out_value = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_sql_setDataSource_var_url_scope_driver_nobody.release();
_jspx_tagPool_c_if_var_test_nobody.release();
_jspx_tagPool_c_catch_var.release();
_jspx_tagPool_fmt_parseNumber_var_value.release();
_jspx_tagPool_c_if_var_test.release();
_jspx_tagPool_c_choose.release();
_jspx_tagPool_c_when_test.release();
_jspx_tagPool_c_set_var_value_nobody.release();
_jspx_tagPool_c_out_value_nobody.release();
_jspx_tagPool_sql_query_var_dataSource.release();
_jspx_tagPool_sql_param_value_nobody.release();
_jspx_tagPool_sql_update_dataSource.release();
_jspx_tagPool_c_otherwise.release();
_jspx_tagPool_c_out_value.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=GBK");
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\r\n\r\n\r\n<html>\r\n<head>\r\n<title>Updating a database using the sql:update tag</title>\r\n");
if (_jspx_meth_sql_setDataSource_0(_jspx_page_context))
return;
out.write("\r\n</head>\r\n<body>\r\n ");
if (_jspx_meth_c_if_0(_jspx_page_context))
return;
out.write("\r\n ");
if (_jspx_meth_c_if_1(_jspx_page_context))
return;
out.write("\r\n ");
if (_jspx_meth_c_catch_0(_jspx_page_context))
return;
out.write("\r\n ");
if (_jspx_meth_c_if_2(_jspx_page_context))
return;
out.write("\r\n ");
if (_jspx_meth_c_choose_0(_jspx_page_context))
return;
out.write("\r\n\r\n\r\n</body>\r\n</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);
}
}
private boolean _jspx_meth_sql_setDataSource_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// sql:setDataSource
org.apache.taglibs.standard.tag.el.sql.SetDataSourceTag _jspx_th_sql_setDataSource_0 = (org.apache.taglibs.standard.tag.el.sql.SetDataSourceTag) _jspx_tagPool_sql_setDataSource_var_url_scope_driver_nobody.get(org.apache.taglibs.standard.tag.el.sql.SetDataSourceTag.class);
_jspx_th_sql_setDataSource_0.setPageContext(_jspx_page_context);
_jspx_th_sql_setDataSource_0.setParent(null);
_jspx_th_sql_setDataSource_0.setVar("dataSource");
_jspx_th_sql_setDataSource_0.setDriver("sun.jdbc.odbc.JdbcOdbcDriver");
_jspx_th_sql_setDataSource_0.setUrl("jdbc:odbc:web");
_jspx_th_sql_setDataSource_0.setScope("session");
int _jspx_eval_sql_setDataSource_0 = _jspx_th_sql_setDataSource_0.doStartTag();
if (_jspx_th_sql_setDataSource_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_sql_setDataSource_var_url_scope_driver_nobody.reuse(_jspx_th_sql_setDataSource_0);
return false;
}
private boolean _jspx_meth_c_if_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.el.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.el.core.IfTag) _jspx_tagPool_c_if_var_test_nobody.get(org.apache.taglibs.standard.tag.el.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(_jspx_page_context);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest("${empty param.username}");
_jspx_th_c_if_0.setVar("noUsername");
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_var_test_nobody.reuse(_jspx_th_c_if_0);
return false;
}
private boolean _jspx_meth_c_if_1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.el.core.IfTag _jspx_th_c_if_1 = (org.apache.taglibs.standard.tag.el.core.IfTag) _jspx_tagPool_c_if_var_test_nobody.get(org.apache.taglibs.standard.tag.el.core.IfTag.class);
_jspx_th_c_if_1.setPageContext(_jspx_page_context);
_jspx_th_c_if_1.setParent(null);
_jspx_th_c_if_1.setTest("${empty param.userpass}");
_jspx_th_c_if_1.setVar("noUserpass");
int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
if (_jspx_th_c_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_var_test_nobody.reuse(_jspx_th_c_if_1);
return false;
}
private boolean _jspx_meth_c_catch_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:catch
org.apache.taglibs.standard.tag.common.core.CatchTag _jspx_th_c_catch_0 = (org.apache.taglibs.standard.tag.common.core.CatchTag) _jspx_tagPool_c_catch_var.get(org.apache.taglibs.standard.tag.common.core.CatchTag.class);
_jspx_th_c_catch_0.setPageContext(_jspx_page_context);
_jspx_th_c_catch_0.setParent(null);
_jspx_th_c_catch_0.setVar("passError");
int[] _jspx_push_body_count_c_catch_0 = new int[] { 0 };
try {
int _jspx_eval_c_catch_0 = _jspx_th_c_catch_0.doStartTag();
if (_jspx_eval_c_catch_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n ");
if (_jspx_meth_fmt_parseNumber_0(_jspx_th_c_catch_0, _jspx_page_context, _jspx_push_body_count_c_catch_0))
return true;
out.write("\r\n ");
int evalDoAfterBody = _jspx_th_c_catch_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_catch_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_catch_0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_catch_0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_catch_0.doFinally();
_jspx_tagPool_c_catch_var.reuse(_jspx_th_c_catch_0);
}
return false;
}
private boolean _jspx_meth_fmt_parseNumber_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_catch_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_catch_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:parseNumber
org.apache.taglibs.standard.tag.el.fmt.ParseNumberTag _jspx_th_fmt_parseNumber_0 = (org.apache.taglibs.standard.tag.el.fmt.ParseNumberTag) _jspx_tagPool_fmt_parseNumber_var_value.get(org.apache.taglibs.standard.tag.el.fmt.ParseNumberTag.class);
_jspx_th_fmt_parseNumber_0.setPageContext(_jspx_page_context);
_jspx_th_fmt_parseNumber_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_catch_0);
_jspx_th_fmt_parseNumber_0.setValue("${param.userpass}");
_jspx_th_fmt_parseNumber_0.setVar("passIsNumber");
int _jspx_eval_fmt_parseNumber_0 = _jspx_th_fmt_parseNumber_0.doStartTag();
if (_jspx_eval_fmt_parseNumber_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_fmt_parseNumber_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_push_body_count_c_catch_0[0]++;
_jspx_th_fmt_parseNumber_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_fmt_parseNumber_0.doInitBody();
}
do {
out.write("\r\n ");
int evalDoAfterBody = _jspx_th_fmt_parseNumber_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_fmt_parseNumber_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = _jspx_page_context.popBody();
_jspx_push_body_count_c_catch_0[0]--;
}
if (_jspx_th_fmt_parseNumber_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_fmt_parseNumber_var_value.reuse(_jspx_th_fmt_parseNumber_0);
return false;
}
private boolean _jspx_meth_c_if_2(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -