?? delete_jsp.java
字號:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class delete_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_set_var_value;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_sql_update_dataSource;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_sql_param_value_nobody;
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_set_var_value = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_sql_update_dataSource = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_sql_param_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_sql_setDataSource_var_url_scope_driver_nobody.release();
_jspx_tagPool_c_set_var_value.release();
_jspx_tagPool_sql_update_dataSource.release();
_jspx_tagPool_sql_param_value_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=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");
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<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");
out.write("</head>\r\n");
out.write("<body>\r\n");
out.write("<h1>Delete Address List</h1>\r\n");
if (_jspx_meth_c_set_0(_jspx_page_context))
return;
out.write('\r');
out.write('\n');
if (_jspx_meth_sql_update_0(_jspx_page_context))
return;
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);
}
}
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_set_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_0 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_var_value.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
_jspx_th_c_set_0.setPageContext(_jspx_page_context);
_jspx_th_c_set_0.setParent(null);
_jspx_th_c_set_0.setVar("username");
_jspx_th_c_set_0.setValue("haha");
int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
if (_jspx_eval_c_set_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_c_set_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_c_set_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_c_set_0.doInitBody();
}
do {
out.write('\r');
out.write('\n');
int evalDoAfterBody = _jspx_th_c_set_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_c_set_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = _jspx_page_context.popBody();
}
if (_jspx_th_c_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_set_var_value.reuse(_jspx_th_c_set_0);
return false;
}
private boolean _jspx_meth_sql_update_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// sql:update
org.apache.taglibs.standard.tag.el.sql.UpdateTag _jspx_th_sql_update_0 = (org.apache.taglibs.standard.tag.el.sql.UpdateTag) _jspx_tagPool_sql_update_dataSource.get(org.apache.taglibs.standard.tag.el.sql.UpdateTag.class);
_jspx_th_sql_update_0.setPageContext(_jspx_page_context);
_jspx_th_sql_update_0.setParent(null);
_jspx_th_sql_update_0.setDataSource("${dataSource}");
int[] _jspx_push_body_count_sql_update_0 = new int[] { 0 };
try {
int _jspx_eval_sql_update_0 = _jspx_th_sql_update_0.doStartTag();
if (_jspx_eval_sql_update_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_sql_update_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_push_body_count_sql_update_0[0]++;
_jspx_th_sql_update_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_sql_update_0.doInitBody();
}
do {
out.write("\r\n");
out.write(" delete from user where username = ?\r\n");
out.write(" ");
if (_jspx_meth_sql_param_0(_jspx_th_sql_update_0, _jspx_page_context, _jspx_push_body_count_sql_update_0))
return true;
out.write('\r');
out.write('\n');
int evalDoAfterBody = _jspx_th_sql_update_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
if (_jspx_eval_sql_update_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
out = _jspx_page_context.popBody();
_jspx_push_body_count_sql_update_0[0]--;
}
if (_jspx_th_sql_update_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_sql_update_0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_sql_update_0.doCatch(_jspx_exception);
} finally {
_jspx_th_sql_update_0.doFinally();
_jspx_tagPool_sql_update_dataSource.reuse(_jspx_th_sql_update_0);
}
return false;
}
private boolean _jspx_meth_sql_param_0(javax.servlet.jsp.tagext.JspTag _jspx_th_sql_update_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_sql_update_0)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// sql:param
org.apache.taglibs.standard.tag.el.sql.ParamTag _jspx_th_sql_param_0 = (org.apache.taglibs.standard.tag.el.sql.ParamTag) _jspx_tagPool_sql_param_value_nobody.get(org.apache.taglibs.standard.tag.el.sql.ParamTag.class);
_jspx_th_sql_param_0.setPageContext(_jspx_page_context);
_jspx_th_sql_param_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_sql_update_0);
_jspx_th_sql_param_0.setValue("${username}");
int _jspx_eval_sql_param_0 = _jspx_th_sql_param_0.doStartTag();
if (_jspx_th_sql_param_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_sql_param_value_nobody.reuse(_jspx_th_sql_param_0);
return false;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -