Exemplo n.º 1
0
 private boolean _jspx_meth_sql_005fsetDataSource_005f0(
     javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable {
   javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
   javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
   //  sql:setDataSource
   org.apache.taglibs.standard.tag.rt.sql.SetDataSourceTag _jspx_th_sql_005fsetDataSource_005f0 =
       (org.apache.taglibs.standard.tag.rt.sql.SetDataSourceTag)
           _005fjspx_005ftagPool_005fsql_005fsetDataSource_0026_005fvar_005fuser_005furl_005fscope_005fpassword_005fdriver_005fnobody
               .get(org.apache.taglibs.standard.tag.rt.sql.SetDataSourceTag.class);
   _jspx_th_sql_005fsetDataSource_005f0.setPageContext(_jspx_page_context);
   _jspx_th_sql_005fsetDataSource_005f0.setParent(null);
   // /register.jsp(10,0) name = var type = java.lang.String reqTime = false required = false
   // fragment = false deferredValue = false expectedTypeName = null deferredMethod = false
   // methodSignature = null
   _jspx_th_sql_005fsetDataSource_005f0.setVar("dataSource");
   // /register.jsp(10,0) name = driver type = null reqTime = true required = false fragment =
   // false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature =
   // null
   _jspx_th_sql_005fsetDataSource_005f0.setDriver("com.mysql.jdbc.Driver");
   // /register.jsp(10,0) name = url type = null reqTime = true required = false fragment = false
   // deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
   _jspx_th_sql_005fsetDataSource_005f0.setUrl("jdbc:mysql://localhost:3306/mydb");
   // /register.jsp(10,0) name = scope type = java.lang.String reqTime = false required = false
   // fragment = false deferredValue = false expectedTypeName = null deferredMethod = false
   // methodSignature = null
   _jspx_th_sql_005fsetDataSource_005f0.setScope("session");
   // /register.jsp(10,0) name = user type = null reqTime = true required = false fragment = false
   // deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
   _jspx_th_sql_005fsetDataSource_005f0.setUser("root");
   // /register.jsp(10,0) name = password type = null reqTime = true required = false fragment =
   // false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature =
   // null
   _jspx_th_sql_005fsetDataSource_005f0.setPassword("");
   int _jspx_eval_sql_005fsetDataSource_005f0 = _jspx_th_sql_005fsetDataSource_005f0.doStartTag();
   if (_jspx_th_sql_005fsetDataSource_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
     _005fjspx_005ftagPool_005fsql_005fsetDataSource_0026_005fvar_005fuser_005furl_005fscope_005fpassword_005fdriver_005fnobody
         .reuse(_jspx_th_sql_005fsetDataSource_005f0);
     return true;
   }
   _005fjspx_005ftagPool_005fsql_005fsetDataSource_0026_005fvar_005fuser_005furl_005fscope_005fpassword_005fdriver_005fnobody
       .reuse(_jspx_th_sql_005fsetDataSource_005f0);
   return false;
 }
Exemplo n.º 2
0
 public void _jspDestroy() {
   _005fjspx_005ftagPool_005fsql_005fsetDataSource_0026_005fvar_005fuser_005furl_005fscope_005fpassword_005fdriver_005fnobody
       .release();
 }
Exemplo n.º 3
0
 public void _jspInit() {
   _005fjspx_005ftagPool_005fsql_005fsetDataSource_0026_005fvar_005fuser_005furl_005fscope_005fpassword_005fdriver_005fnobody =
       org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
 }