List of usage examples for javax.servlet.jsp PageContext getSession
abstract public HttpSession getSession();
From source file:org.apache.jsp.view.ask_jsp.java
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null;//from w ww. ja va2 s . co m ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=UTF-8"); 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'); out.write('\n'); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); String contextPath = (String) request.getContextPath(); pageContext.setAttribute("contextPath", contextPath); out.write("\r\n"); out.write("\r\n"); out.write(" "); out.write("\r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("\r\n"); out.write("<html> \r\n"); out.write("<head> \r\n"); out.write(" <title>ask - youxifan</title> \r\n"); out.write( " <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></script>\r\n"); out.write( " <script type=\"text/javascript\" src=\"http://cdn.sstatic.net/js/stub.js?v=c014461b9109\"></script>\r\n"); out.write(" <link rel=\"stylesheet\" type=\"text/css\" href=\""); out.print(contextPath); out.write("/css/all.css\">\r\n"); out.write("\r\n"); out.write("</head>\r\n"); out.write("<body class=\"questions-page\">\r\n"); out.write(" <noscript><div id=\"noscript-padding\"></div></noscript>\r\n"); out.write(" <div id=\"notify-container\"></div>\r\n"); out.write(" <div id=\"overlay-header\"></div>\r\n"); out.write(" <div id=\"custom-header\"></div>\r\n"); out.write("\r\n"); out.write(" <div class=\"container\">\r\n"); out.write(" "); out.write("\r\n"); out.write("\t\r\n"); out.write("\t\r\n"); out.write("\t\t<div id=\"header\">\r\n"); out.write(" <div id=\"topbar\"> \r\n"); out.write(" </div> \r\n"); out.write(" <div id=\"hmenus\">\r\n"); out.write(" <div class=\"nav mainnavs\">\r\n"); out.write(" <ul>\r\n"); out.write(" <li class=\"youarehere\"><a id=\"nav-questions\" href=\""); out.print(contextPath); out.write("/s/doc\"></a></li>\r\n"); out.write(" <li><a id=\"nav-tags\" href=\"/tags\">Tags</a></li>\r\n"); out.write(" <li><a id=\"nav-users\" href=\"/users\">Users</a></li>\r\n"); out.write(" <li><a id=\"nav-badges\" href=\"/badges\">Badges</a></li>\r\n"); out.write( " <li><a id=\"nav-unanswered\" href=\"/unanswered\">Unanswered</a></li>\r\n"); out.write(" </ul>\r\n"); out.write(" </div>\r\n"); out.write(" \r\n"); out.write(" </div>\r\n"); out.write(" </div>"); out.write("\r\n"); out.write("\r\n"); out.write("\t\t<div id=\"content\">\r\n"); out.write("\t\t\t\r\n"); out.write("\t <div id=\"mainbar\" class=\"ask-mainbar\"> \r\n"); out.write("\t \t\r\n"); out.write("\t \t<div class=\"subheader\">\r\n"); out.write("\t\t\t\t\t<h1>??</h1>\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\t\t\t\t\r\n"); out.write("\t \t\t<form id=\"post-form\" class=\"post-form\" action=\""); out.print(contextPath); out.write("/s/doc\" method=\"post\">\r\n"); out.write("\t \t\t<input type=\"hidden\" name=\"doctype\" value=\"1\" />\r\n"); out.write("\t \t\t<label ></label><br/>\r\n"); out.write( "\t \t\t<input id=\"title\" name=\"title\" type=\"text\" maxlength=\"300\" tabindex=\"100\" class=\"ask-title-field\" value=\"\"><br/>\r\n"); out.write("\t \t\t<label ></label><br/>\r\n"); out.write( "\t \t\t<textarea id=\"wmd-input\" class=\"wmd-input\" name=\"post-text\" cols=\"92\" rows=\"15\" tabindex=\"101\">\r\n"); out.write("\t\t\t\t\t</textarea>\r\n"); out.write("\t \t\t\r\n"); out.write("\t \t\t\r\n"); out.write("\t \t\t<div class=\"form-item\">\r\n"); out.write("\t \t\t\t<label>Tags</label> \r\n"); out.write( "\t \t\t\t<input id=\"tagnames\" name=\"tagnames\" type=\"text\" size=\"60\" value=\"\" tabindex=\"103\">\r\n"); out.write( "\t \t\t\t<span class=\"edit-field-overlay\">at least one tag such as (c++ sql-server c), max 5 tags</span>\r\n"); out.write("\t \t\t</div>\r\n"); out.write("\t \t\t\r\n"); out.write("\t \t\t<div class=\"form-submit cbt\">\r\n"); out.write( "\t \t\t<input id=\"submit-button\" type=\"submit\" value=\"??\" tabindex=\"120\">\r\n"); out.write("\t \t\t</div>\r\n"); out.write("\t \t</form>\r\n"); out.write("\t </div> \r\n"); out.write("\t \r\n"); out.write("\r\n"); out.write("\t \r\n"); out.write("\t\t\t<div id=\"sidebar\" class=\"ask-sidebar\">\r\n"); out.write("\t\t\t\t<div class=\"module\" id=\"questions-count\">\r\n"); out.write("\t\t\t\t\t<div class=\"summarycount al\">305</div>\r\n"); out.write("\t\t\t\t\t<p>questions</p>\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\t\t\t\t<div class=\"everyonelovesstackoverflow\" id=\"adzerk2\">\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\r\n"); out.write("\t\t\t\t<div class=\"module\" id=\"related-tags\">\r\n"); out.write("\t\t\t\t\t<h4 id=\"h-related-tags\">Related Tags</h4>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/android\" class=\"post-tag\" title=\"show questions tagged 'android'\" rel=\"tag\"><img src=\"http://cdn.sstatic.net/img/hosted/tKsDb.png\" height=\"16\" width=\"18\" alt=\"\" class=\"sponsor-tag-img\">android</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">42</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/c%23\" class=\"post-tag\" title=\"show questions tagged 'c#'\" rel=\"tag\">c#</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">27</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/javascript\" class=\"post-tag\" title=\"show questions tagged 'javascript'\" rel=\"tag\">javascript</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">25</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/java\" class=\"post-tag\" title=\"show questions tagged 'java'\" rel=\"tag\">java</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">24</span></span> <br> \r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\r\n"); out.write("\t\t</div>\r\n"); out.write(" </div>\r\n"); out.write(" <div id=\"footer\">\r\n"); out.write(" <div class=\"footerwrap\">\r\n"); out.write(" <div id=\"footer-menu\">\r\n"); out.write(" <a href=\"/about\">about</a> |\r\n"); out.write( " <a href=\"/faq\">faq</a> | <a href=\"http://blog.stackexchange.com?blt=1\">blog</a> |\r\n"); out.write(" <a href=\"http://chat.stackoverflow.com\">chat</a> |\r\n"); out.write(" <a href=\"http://data.stackexchange.com\">data</a> |\r\n"); out.write( " <a href=\"http://blog.stackoverflow.com/category/podcasts/\">podcast</a> |\r\n"); out.write(" <a href=\"http://shop.stackexchange.com/\">shop</a> |\r\n"); out.write(" <a href=\"http://stackexchange.com/legal\">legal</a>\r\n"); out.write(" <div id=\"footer-sites\">\r\n"); out.write(" \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://stackoverflow.com\">stackoverflow.com</a> \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://stackapps.com\">api/apps</a> \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://careers.stackoverflow.com\">careers</a> \r\n"); out.write( " <span style=\"color:#E8272C;font-size:140%\">■</span> <a href=\"http://serverfault.com\">serverfault.com</a> \r\n"); out.write( " <span style=\"color:#00AFEF;font-size:140%\">■</span> <a href=\"http://superuser.com\">superuser.com</a> \r\n"); out.write( " <span style=\"color:#969696;font-size:140%\">■</span> <a href=\"http://meta.stackoverflow.com\">meta</a> \r\n"); out.write( " <span style=\"color:#46937D;font-size:140%\">■</span> <a href=\"http://area51.stackexchange.com\">area 51</a> \r\n"); out.write( " <span style=\"color:#C0D0DC;font-size:140%\">■</span> <a href=\"http://webapps.stackexchange.com\">webapps</a> \r\n"); out.write(" <span style=\"color:#000000;font-size:140%\">■</span>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" <div id=\"footer-flair\">\r\n"); out.write(" <a class=\"peer1\" href=\"http://www.peer1.com/stackoverflow\"></a> \r\n"); out.write( " <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n"); out.write(" <div id=\"svnrev\">rev 2012.3.7.1488</div>\r\n"); out.write(" </div>\r\n"); out.write(" <div id=\"copyright\">\r\n"); out.write(" site design / logo © 2012 stack exchange inc; \r\n"); out.write( " user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (Throwable t) { if (!(t instanceof SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
From source file:org.apache.jsp.view.doclist_jsp.java
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null;/*from w ww. j a va 2 s.co m*/ ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=UTF-8"); 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'); out.write('\n'); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); String contextPath = (String) request.getContextPath(); pageContext.setAttribute("contextPath", contextPath); out.write("\r\n"); out.write("\r\n"); out.write(" "); out.write("\r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("\r\n"); out.write("<html> \r\n"); out.write("<head> \r\n"); out.write(" <title>Bounty Questions - Stack Overflow</title> \r\n"); out.write( " <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></script>\r\n"); out.write( " <script type=\"text/javascript\" src=\"http://cdn.sstatic.net/js/stub.js?v=c014461b9109\"></script>\r\n"); out.write(" <link rel=\"stylesheet\" type=\"text/css\" href=\""); out.print(contextPath); out.write("/css/all.css\">\r\n"); String sort = (String) request.getAttribute("sort"); if (StringUtils.isEmpty(sort)) { sort = "newest"; } out.write("\r\n"); out.write("</head>\r\n"); out.write("<body class=\"questions-page\">\r\n"); out.write(" <noscript><div id=\"noscript-padding\"></div></noscript>\r\n"); out.write(" <div id=\"notify-container\"></div>\r\n"); out.write(" <div id=\"overlay-header\"></div>\r\n"); out.write(" <div id=\"custom-header\"></div>\r\n"); out.write("\r\n"); out.write(" <div class=\"container\">\r\n"); out.write(" "); out.write("\r\n"); out.write("\t\r\n"); out.write("\t\r\n"); out.write("\t\t<div id=\"header\">\r\n"); out.write(" <div id=\"topbar\"> \r\n"); out.write(" </div> \r\n"); out.write(" <div id=\"hmenus\">\r\n"); out.write(" <div class=\"nav mainnavs\">\r\n"); out.write(" <ul>\r\n"); out.write(" <li class=\"youarehere\"><a id=\"nav-questions\" href=\""); out.print(contextPath); out.write("/s/doc\"></a></li>\r\n"); out.write(" <li><a id=\"nav-tags\" href=\"/tags\">Tags</a></li>\r\n"); out.write(" <li><a id=\"nav-users\" href=\"/users\">Users</a></li>\r\n"); out.write(" <li><a id=\"nav-badges\" href=\"/badges\">Badges</a></li>\r\n"); out.write( " <li><a id=\"nav-unanswered\" href=\"/unanswered\">Unanswered</a></li>\r\n"); out.write(" </ul>\r\n"); out.write(" </div>\r\n"); out.write(" \r\n"); out.write(" </div>\r\n"); out.write(" </div>"); out.write("\r\n"); out.write("\r\n"); out.write(" <div id=\"content\">\r\n"); out.write(" \r\n"); out.write(" <div id=\"mainbar\"> \r\n"); out.write("\t\t\t\t<div class=\"subheader\">\r\n"); out.write("\t\t\t\t\t<div id=\"tabs\">\r\n"); out.write("<a "); out.print("newest".equals(sort) ? "class=\"youarehere\"" : ""); out.write( " href=\"/questions?sort=newest\" title=\"the most recently asked questions\"></a>\r\n"); out.write("<a "); out.print("featured".equals(sort) ? "class=\"youarehere\"" : ""); out.write(" href=\"/questions?sort=featured\" title=\"questions with open bounties\"></a>\r\n"); out.write("<a "); out.print("unanswered".equals(sort) ? "class=\"youarehere\"" : ""); out.write(" href=\"/questions?sort=faq\" title=\"questions with the most links\"></a>\r\n"); out.write("<a "); out.print("votes".equals(sort) ? "class=\"youarehere\"" : ""); out.write(" href=\"/questions?sort=votes\" title=\"questions with the most votes\">?</a>\r\n"); out.write("<a "); out.print("active".equals(sort) ? "class=\"youarehere\"" : ""); out.write( " href=\"/questions?sort=active\" title=\"questions that have recent activity\">active</a>\r\n"); out.write("<a "); out.print("question".equals(sort) ? "class=\"youarehere\"" : ""); out.write(" href=\""); out.print(contextPath); out.write("/view/ask.jsp\" title=\"??\">??</a>\r\n"); out.write("\t\t\t\t\t</div> \r\n"); out.write("\t\t\t\t\t<h1 id=\"h-all-questions\"></h1> \r\n"); out.write("\t\t\t\t\t\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t<div id=\"questions\">\r\n"); // c:forEach org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems .get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class); _jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context); _jspx_th_c_005fforEach_005f0.setParent(null); // /view/doclist.jsp(46,0) name = items type = javax.el.ValueExpression reqTime = true required = false fragment = false deferredValue = true expectedTypeName = java.lang.Object deferredMethod = false methodSignature = null _jspx_th_c_005fforEach_005f0 .setItems(new org.apache.jasper.el.JspValueExpression("/view/doclist.jsp(46,0) '${doclist}'", _el_expressionfactory.createValueExpression(_jspx_page_context.getELContext(), "${doclist}", java.lang.Object.class)) .getValue(_jspx_page_context.getELContext())); // /view/doclist.jsp(46,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_c_005fforEach_005f0.setVar("doc"); int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] { 0 }; try { int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag(); if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\r\n"); out.write("\r\n"); out.write("\t\t\t\t\t<div class=\"question-summary\" id=\"question-summary-"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.docid}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("\">\r\n"); out.write("\t\t\t\t\t\t<div class=\"statscontainer\">\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"statsarrow\"></div>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"stats\">\r\n"); out.write("\t\t\t\t\t\t\t\t<div class=\"vote\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t<div class=\"votes\">\r\n"); out.write( "\t\t\t\t\t\t\t\t\t\t<span class=\"vote-count-post\"><strong>6</strong></span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t<div class=\"viewcount\">votes</div>\r\n"); out.write("\t\t\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t\t<div class=\"status answered\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t<strong>3</strong>answers\r\n"); out.write("\t\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t\t<div class=\"views\" title=\"188 views\">188 views</div>\r\n"); out.write("\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t<div class=\"summary\"> \r\n"); out.write("\t\t\t\t\t\t\t<h3><a href=\""); out.print(contextPath); out.write("/s/doc/id/"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.docid}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("\" class=\"question-hyperlink\">"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.title}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("</a></h3>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"excerpt\">\r\n"); out.write("\t\t\t\t\t\t\t\t"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.content}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("\t \r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"tags t-android t-webview t-textview\">\r\n"); out.write( "\t\t\t\t\t\t\t\t<a href=\"/questions/tagged/android\" class=\"post-tag\" title=\"show questions tagged 'android'\" rel=\"tag\">\r\n"); out.write( "\t\t\t\t\t\t\t\t\t<img src=\"http://cdn.sstatic.net/img/hosted/tKsDb.png\" height=\"16\" width=\"18\" alt=\"\" class=\"sponsor-tag-img\">android</a> \r\n"); out.write( "\t\t\t\t\t\t\t\t<a href=\"/questions/tagged/webview\" class=\"post-tag\" title=\"show questions tagged 'webview'\" rel=\"tag\">webview</a> \r\n"); out.write( "\t\t\t\t\t\t\t\t<a href=\"/questions/tagged/textview\" class=\"post-tag\" title=\"show questions tagged 'textview'\" rel=\"tag\">textview</a> \r\n"); out.write("\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"started fr\">\r\n"); out.write("\t\t\t\t\t\t\t\t<div class=\"user-info\"> \r\n"); out.write("\t\t\t\t\t\t\t\t\t<div class=\"user-gravatar32\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t<a href=\"/users/565319/richard\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t<div class=\"\"><img src=\""); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageScope.contextPath}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write('/'); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.creater.imageurl}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("\" alt=\"\" width=\"32\" height=\"32\"></div>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t</a>\r\n"); out.write("\t\t\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t\t\t<div class=\"user-details\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t<a href=\"/users/"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.creater.userid}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write('"'); out.write('>'); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.creater.username}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("</a><br>\r\n"); out.write( "\t\t\t\t\t\t\t\t\t\t\t<span class=\"reputation-score\" title=\"reputation score\" dir=\"ltr\">296</span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t<span title=\"1 silver badge\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badge2\"></span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badgecount\">1</span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t</span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t<span title=\"13 bronze badges\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badge3\"></span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badgecount\">13</span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t</span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t\t\t</div>\r\n"); out.write( "\t\t\t\t\t\t\t\t\t<div class=\"user-action-time\">asked <span title=\"\" class=\"relativetime\">"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.createdate}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("</span></div>\r\n"); out.write("\t\t\t\t\t\t\t</div> \r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t</div>\r\n"); int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { return; } } catch (Throwable _jspx_exception) { while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0) out = _jspx_page_context.popBody(); _jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception); } finally { _jspx_th_c_005fforEach_005f0.doFinally(); _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f0); } out.write("\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t\t<br class=\"cbt\">\r\n"); out.write("\t\t\t\t<div class=\"page-sizer fr\">\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?sort=featured&pagesize=15\" title=\"show 15 items per page\" class=\"current page-numbers\">15</a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?sort=featured&pagesize=30\" title=\"show 30 items per page\" class=\"page-numbers\">30</a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?sort=featured&pagesize=50\" title=\"show 50 items per page\" class=\"page-numbers\">50</a>\r\n"); out.write("\t\t\t\t\t<span class=\"page-numbers desc\">per page</span>\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t\t<div class=\"pager fl\" >\r\n"); out.write("\t\t\t\t\t<span class=\"page-numbers current\">1</span>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=2&sort=featured\" title=\"go to page 2\"><span class=\"page-numbers\">2</span></a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=3&sort=featured\" title=\"go to page 3\"><span class=\"page-numbers\">3</span></a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=4&sort=featured\" title=\"go to page 4\"><span class=\"page-numbers\">4</span></a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=5&sort=featured\" title=\"go to page 5\"><span class=\"page-numbers\">5</span></a>\r\n"); out.write("\t\t\t\t\t<span class=\"page-numbers dots\">…</span>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=21&sort=featured\" title=\"go to page 21\"><span class=\"page-numbers\">21</span></a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=2&sort=featured\" title=\"go to page 2\" rel=\"next\"><span class=\"page-numbers next\"> next</span></a>\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\t\t\t\r\n"); out.write("\t\t\t\r\n"); out.write("\t\t\t<div id=\"sidebar\">\r\n"); out.write("\t\t\t\t<div class=\"module\" id=\"questions-count\">\r\n"); out.write("\t\t\t\t\t<div class=\"summarycount al\">305</div>\r\n"); out.write("\t\t\t\t\t<p>questions</p>\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\t\t\t\t<div class=\"everyonelovesstackoverflow\" id=\"adzerk2\">\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\r\n"); out.write("\t\t\t\t<div class=\"module\" id=\"related-tags\">\r\n"); out.write("\t\t\t\t\t<h4 id=\"h-related-tags\">Related Tags</h4>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/android\" class=\"post-tag\" title=\"show questions tagged 'android'\" rel=\"tag\"><img src=\"http://cdn.sstatic.net/img/hosted/tKsDb.png\" height=\"16\" width=\"18\" alt=\"\" class=\"sponsor-tag-img\">android</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">42</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/c%23\" class=\"post-tag\" title=\"show questions tagged 'c#'\" rel=\"tag\">c#</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">27</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/javascript\" class=\"post-tag\" title=\"show questions tagged 'javascript'\" rel=\"tag\">javascript</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">25</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/java\" class=\"post-tag\" title=\"show questions tagged 'java'\" rel=\"tag\">java</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">24</span></span> <br> \r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\r\n"); out.write("\t\t</div>\r\n"); out.write(" </div>\r\n"); out.write(" "); out.write("\t<div id=\"footer\">\r\n"); out.write(" <div class=\"footerwrap\">\r\n"); out.write(" <div id=\"footer-menu\">\r\n"); out.write(" <a href=\"/about\">about</a> |\r\n"); out.write( " <a href=\"/faq\">faq</a> | <a href=\"http://blog.stackexchange.com?blt=1\">blog</a> |\r\n"); out.write(" <a href=\"http://chat.stackoverflow.com\">chat</a> |\r\n"); out.write(" <a href=\"http://data.stackexchange.com\">data</a> |\r\n"); out.write( " <a href=\"http://blog.stackoverflow.com/category/podcasts/\">podcast</a> |\r\n"); out.write(" <a href=\"http://shop.stackexchange.com/\">shop</a> |\r\n"); out.write(" <a href=\"http://stackexchange.com/legal\">legal</a>\r\n"); out.write(" <div id=\"footer-sites\">\r\n"); out.write(" \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://stackoverflow.com\">stackoverflow.com</a> \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://stackapps.com\">api/apps</a> \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://careers.stackoverflow.com\">careers</a> \r\n"); out.write( " <span style=\"color:#E8272C;font-size:140%\">■</span> <a href=\"http://serverfault.com\">serverfault.com</a> \r\n"); out.write( " <span style=\"color:#00AFEF;font-size:140%\">■</span> <a href=\"http://superuser.com\">superuser.com</a> \r\n"); out.write( " <span style=\"color:#969696;font-size:140%\">■</span> <a href=\"http://meta.stackoverflow.com\">meta</a> \r\n"); out.write( " <span style=\"color:#46937D;font-size:140%\">■</span> <a href=\"http://area51.stackexchange.com\">area 51</a> \r\n"); out.write( " <span style=\"color:#C0D0DC;font-size:140%\">■</span> <a href=\"http://webapps.stackexchange.com\">webapps</a> \r\n"); out.write(" <span style=\"color:#000000;font-size:140%\">■</span>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" <div id=\"footer-flair\">\r\n"); out.write(" <a class=\"peer1\" href=\"http://www.peer1.com/stackoverflow\"></a> \r\n"); out.write( " <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n"); out.write(" <div id=\"svnrev\">rev 2012.3.7.1488</div>\r\n"); out.write(" </div>\r\n"); out.write(" <div id=\"copyright\">\r\n"); out.write(" site design / logo © 2012 stack exchange inc; \r\n"); out.write( " user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" </div>"); out.write("\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (Throwable t) { if (!(t instanceof SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
From source file:org.apache.jsp.webpage.modules.gen.genTableForm_jsp.java
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError(405, "JSPs only permit GET POST or HEAD"); } else {/*from ww w. ja v a 2s .co m*/ Object out = null; Object _jspx_out = null; PageContext _jspx_page_context = null; try { try { response.setContentType("text/html;charset=UTF-8"); PageContext pageContext = _jspxFactory.getPageContext(this, request, response, (String) null, true, 8192, true); _jspx_page_context = pageContext; pageContext.getServletContext(); pageContext.getServletConfig(); pageContext.getSession(); out = pageContext.getOut(); ((JspWriter) out).write(10); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); if (this._jspx_meth_c_005fset_005f0(pageContext)) { return; } ((JspWriter) out).write(10); if (this._jspx_meth_c_005fset_005f1(pageContext)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("<html>\n"); ((JspWriter) out).write("<head>\n"); ((JspWriter) out).write("\t<title>??</title>\n"); ((JspWriter) out).write("\t<meta name=\"decorator\" content=\"default\"/>\n"); ((JspWriter) out).write("\t<script type=\"text/javascript\" src=\""); ((JspWriter) out).write((String) PageContextImpl.proprietaryEvaluate("${ctxStatic}", String.class, pageContext, (ProtectedFunctionMapper) null)); ((JspWriter) out).write("/jquery-combox/jquery.combox.js\"></script>\n"); ((JspWriter) out).write("\t<link rel=\"stylesheet\" href=\""); ((JspWriter) out).write((String) PageContextImpl.proprietaryEvaluate("${ctxStatic}", String.class, pageContext, (ProtectedFunctionMapper) null)); ((JspWriter) out).write("/jquery-combox/styles/style.css\" type=\"text/css\"/>\n"); ((JspWriter) out).write("\t<script type=\"text/javascript\">\n"); ((JspWriter) out).write( "\tvar validateForm;function doSubmit(){return validateForm.form()?($(\"#inputForm\").submit(),!0):!1};$(document).ready(function(){validateForm=$(\"#inputForm\").validate({ignore:\"\",submitHandler:function(a){loading(\"\\u6b63\\u5728\\u63d0\\u4ea4\\uff0c\\u8bf7\\u7a0d\\u7b49...\");$(\"input[type=checkbox]\").each(function(){$(this).after(\'<input type=\"hidden\" name=\"\'+$(this).attr(\"name\")+\'\" value=\"\'+($(this).attr(\"checked\")?\"1\":\"0\")+\'\"/>\');$(this).attr(\"name\",\"_\"+$(this).attr(\"name\"))});a.submit()},errorContainer:\"#messageBox\",errorPlacement:function(a,b){$(\"#messageBox\").text(\"\\u8f93\\u5165\\u6709\\u8bef\\uff0c\\u8bf7\\u5148\\u66f4\\u6b63\\u3002\");b.is(\":checkbox\")||b.is(\":radio\")||b.parent().is(\".input-append\")?a.appendTo(b.parent().parent()):a.insertAfter(b)}});resetColumnNo();$(\"#tableType\").change(function(){\"3\"==$(\"#tableType\").val()?addForTreeTable():removeForTreeTable()});var b,c;$(\"#contentTable1\").tableDnD({onDragClass:\"myDragClass\",onDrop:function(a,d){c=$(d).index();var f=$(\"#tab-2 #contentTable2 tbody tr:eq(\"+c+\")\"),e=$(\"#tab-2 #contentTable2 tbody tr:eq(\"+b+\")\");b<c?e.insertAfter(f):e.insertBefore(f);f=$(\"#tab-3 #contentTable3 tbody tr:eq(\"+c+\")\");e=$(\"#tab-3 #contentTable3 tbody tr:eq(\"+b+\")\");b<c?e.insertAfter(f):e.insertBefore(f);f=$(\"#tab-4 #contentTable4 tbody tr:eq(\"+c+\")\");e=$(\"#tab-4 #contentTable4 tbody tr:eq(\"+b+\")\");b<c?e.insertAfter(f):e.insertBefore(f);resetColumnNo()},onDragStart:function(a,c){b=$(c).index()}})});function resetColumnNo(){$(\"#tab-4 #contentTable4 tbody tr\").each(function(b,c){$(this).find(\"span[name*=columnList],select[name*=columnList],input[name*=columnList]\").each(function(){var a=$(this).attr(\"name\"),c=a.split(\".\")[1],c=\"columnList[\"+b+\"].\"+c;$(this).attr(\"name\",c);0<=a.indexOf(\".sort\")&&($(this).val(b),$(this).next().text(b))});$(this).find(\"label[id*=columnList]\").each(function(){var a=$(this).attr(\"id\").split(\".\")[1],a=\"columnList[\"+b+\"].\"+a;$(this).attr(\"id\",a);$(this).attr(\"for\",\"columnList[\"+b+\"].jdbcType\")});$(this).find(\"input[name*=name]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)});$(this).find(\"input[name*=comments]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)})});$(\"#tab-3 #contentTable3 tbody tr\").each(function(b,c){$(this).find(\"span[name*=columnList],select[name*=columnList],input[name*=columnList]\").each(function(){var a=$(this).attr(\"name\"),c=a.split(\".\")[1],c=\"columnList[\"+b+\"].\"+c;$(this).attr(\"name\",c);0<=a.indexOf(\".sort\")&&($(this).val(b),$(this).next().text(b))});$(this).find(\"label[id*=columnList]\").each(function(){var a=$(this).attr(\"id\").split(\".\")[1],a=\"columnList[\"+b+\"].\"+a;$(this).attr(\"id\",a);$(this).attr(\"for\",\"columnList[\"+b+\"].jdbcType\")});$(this).find(\"input[name*=name]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)});$(this).find(\"input[name*=comments]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)})});$(\"#tab-2 #contentTable2 tbody tr\").each(function(b,c){$(this).find(\"span[name*=columnList],select[name*=columnList],input[name*=columnList]\").each(function(){var a=$(this).attr(\"name\"),c=a.split(\".\")[1],c=\"columnList[\"+b+\"].\"+c;$(this).attr(\"name\",c);0<=a.indexOf(\".sort\")&&($(this).val(b),$(this).next().text(b))});$(this).find(\"label[id*=columnList]\").each(function(){var a=$(this).attr(\"id\").split(\".\")[1],a=\"columnList[\"+b+\"].\"+a;$(this).attr(\"id\",a);$(this).attr(\"for\",\"columnList[\"+b+\"].jdbcType\")});$(this).find(\"input[name*=name]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)});$(this).find(\"input[name*=comments]\").each(function(){var a=$(this).attr(\"name\").split(\".\")[1],a=\"page-columnList[\"+b+\"].\"+a;$(this).attr(\"name\",a)})});$(\"#tab-1 #contentTable1 tbody tr\").each(function(b,c){$(this).find(\"span[name*=columnList],select[name*=columnList],input[name*=columnList]\").each(function(){var a=$(this).attr(\"name\"),c=a.split(\".\")[1],c=\"columnList[\"+b+\"].\"+c;$(this).attr(\"name\",c);0<=a.indexOf(\".sort\")&&($(this).val(b),$(this).next().text(b))});$(this).find(\"label[id*=columnList]\").each(function(){var a=$(this).attr(\"id\").split(\".\")[1],a=\"columnList[\"+b+\"].\"+a;$(this).attr(\"id\",a);$(this).attr(\"for\",\"columnList[\"+b+\"].jdbcType\")});$(this).find(\"input[name*=name]\").change(function(){var a=\"page-\"+$(this).attr(\"name\");$(\"#tab-2 #contentTable2 tbody tr input[name=\'\"+a+\"\']\").val($(this).val());$(\"#tab-3 #contentTable3 tbody tr input[name=\'\"+a+\"\']\").val($(this).val());$(\"#tab-4 #contentTable4 tbody tr input[name=\'\"+a+\"\']\").val($(this).val())});$(this).find(\"input[name*=comments]\").change(function(){var a=\"page-\"+$(this).attr(\"name\");$(\"#tab-2 #contentTable2 tbody tr input[name=\'\"+a+\"\']\").val($(this).val());$(\"#tab-3 #contentTable3 tbody tr input[name=\'\"+a+\"\']\").val($(this).val());$(\"#tab-4 #contentTable4 tbody tr input[name=\'\"+a+\"\']\").val($(this).val())})});$(\"#contentTable1 tbody tr span[name*=jdbcType]\").combox({datas:\"varchar(64) nvarchar(64) integer double datetime longblob longtext\".split(\" \")});$(\"#contentTable2 tbody tr select[name*=javaType]\").change(function(){var b=$(this).children(\"option:selected\").val(),c=$(this);if(\"Custom\"==b||\"newadd\"==$(this).children(\"option:selected\").attr(\"class\"))top.layer.open({type:1,title:\"\\u8f93\\u5165\\u81ea\\u5b9a\\u4e49java\\u5bf9\\u8c61\",area:[\"600px\",\"360px\"],shadeClose:!0,content:\'<div class=\"wrapper wrapper-content\"><div class=\"col-md-12\"><div class=\"form-group\"> <label class=\"col-sm-3 control-label\">\\u5305\\u540d\\uff1a</label> <div class=\"col-sm-9\"> <input type=\"text\" id=\"packagePath\" name=\"\" class=\"form-control required\" placeholder=\"\\u8bf7\\u8f93\\u5165\\u81ea\\u5b9a\\u4e49\\u5bf9\\u8c61\\u6240\\u5728\\u7684\\u5305\\u8def\\u5f84\"> <span class=\"help-block m-b-none\">\\u5fc5\\u987b\\u662f\\u5b58\\u5728\\u7684package</span> </div> </div> <div class=\"form-group\"> <label class=\"col-sm-3 control-label\">\\u7c7b\\u540d\\uff1a</label> <div class=\"col-sm-9\"> <input type=\"text\" id=\"className\" name=\"\" class=\"form-control required\" placeholder=\"\\u8bf7\\u8f93\\u5165\\u81ea\\u5b9a\\u4e49\\u5bf9\\u8c61\\u7684\\u7c7b\\u540d\"> <span class=\"help-block m-b-none\">\\u5fc5\\u987b\\u662f\\u5b58\\u5728\\u7684class\\u5bf9\\u8c61</span> </div> </div></div></div>\',btn:[\"\\u786e\\u5b9a\",\"\\u5173\\u95ed\"],yes:function(a,b){var f=top.$(\"#packagePath\").val(),e=top.$(\"#className\").val(),g=f+\".\"+e;top.$(\"<option>\").val(g).text(e);\"\"==e.trim()||\"\"==f.trim()?top.layer.alert(\"\\u5305\\u540d\\u548c\\u7c7b\\u540d\\u90fd\\u4e0d\\u5141\\u8bb8\\u4e3a\\u7a7a!\",{icon:0}):(c.children(\"option:selected\").text(e),c.children(\"option:selected\").val(g),c.children(\"option:selected\").attr(\"class\",\"newadd\"),top.layer.close(a))},cancel:function(a){}}),\"Custom\"!=b&&\"newadd\"==$(this).children(\"option:selected\").attr(\"class\")&&(top.$(\"#packagePath\").val($(this).children(\"option:selected\").val().substring(0,$(this).children(\"option:selected\").val().lastIndexOf(\".\"))),top.$(\"#className\").val($(this).children(\"option:selected\").text()))})};function addColumn(){var b=$(\"#template1\").clone();b.removeAttr(\"style\");b.removeAttr(\"id\");var c=$(\"#template2\").clone();c.removeAttr(\"style\");c.removeAttr(\"id\");var a=$(\"#template3\").clone();a.removeAttr(\"style\");a.removeAttr(\"id\");var d=$(\"#template4\").clone();d.removeAttr(\"style\");d.removeAttr(\"id\");$(\"#tab-1 #contentTable1 tbody\").append(b);$(\"#tab-2 #contentTable2 tbody\").append(c);$(\"#tab-3 #contentTable3 tbody\").append(a);$(\"#tab-4 #contentTable4 tbody\").append(d);b.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});c.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});a.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});d.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});resetColumnNo();$(\"#contentTable1\").tableDnD({onDragClass:\"myDragClass\",onDrop:function(a,b){toIndex=$(b).index();var c=$(\"#tab-2 #contentTable2 tbody tr:eq(\"+toIndex+\")\"),d=$(\"#tab-2 #contentTable2 tbody tr:eq(\"+fromIndex+\")\");fromIndex<toIndex?d.insertAfter(c):d.insertBefore(c);c=$(\"#tab-3 #contentTable3 tbody tr:eq(\"+toIndex+\")\");d=$(\"#tab-3 #contentTable3 tbody tr:eq(\"+fromIndex+\")\");fromIndex<toIndex?d.insertAfter(c):d.insertBefore(c);c=$(\"#tab-4 #contentTable4 tbody tr:eq(\"+toIndex+\")\");d=$(\"#tab-4 #contentTable4 tbody tr:eq(\"+fromIndex+\")\");fromIndex<toIndex?d.insertAfter(c):d.insertBefore(c);resetColumnNo()},onDragStart:function(a,b){fromIndex=$(b).index()}});return!1};function removeForTreeTable(){$(\"#tab-1 #contentTable1 tbody\").find(\"#tree_11,#tree_12,#tree_13,#tree_14\").remove();$(\"#tab-2 #contentTable2 tbody\").find(\"#tree_21,#tree_22,#tree_23,#tree_24\").remove();$(\"#tab-3 #contentTable3 tbody\").find(\"#tree_31,#tree_32,#tree_33,#tree_34\").remove();$(\"#tab-4 #contentTable4 tbody\").find(\"#tree_41,#tree_42,#tree_43,#tree_44\").remove();resetColumnNo();return!1};function addForTreeTable(){if(!$(\"#tab-1 #contentTable1 tbody\").find(\"input[name*=name][value=parent_id]\").val()){var b=$(\"#template1\").clone();b.removeAttr(\"style\");b.attr(\"id\",\"tree_11\");b.find(\"input[name*=name]\").val(\"parent_id\");b.find(\"input[name*=comments]\").val(\"\\u7236\\u7ea7\\u7f16\\u53f7\");b.find(\"span[name*=jdbcType]\").val(\"varchar(64)\");var c=$(\"#template2\").clone();c.removeAttr(\"style\");c.attr(\"id\",\"tree_21\");c.find(\"input[name*=name]\").val(\"parent_id\");c.find(\"select[name*=javaType]\").val(\"This\");c.find(\"input[name*=javaField]\").val(\"parent.id|name\");c.find(\"input[name*=isList]\").removeAttr(\"checked\");c.find(\"select[name*=showType]\").val(\"treeselect\");var a=$(\"#template3\").clone();a.removeAttr(\"style\");a.attr(\"id\",\"tree_31\");a.find(\"input[name*=name]\").val(\"parent_id\");var d=$(\"#template4\").clone();d.removeAttr(\"style\");d.attr(\"id\",\"tree_41\");d.find(\"input[name*=name]\").val(\"parent_id\");d.find(\"input[name*=isNull]\").removeAttr(\"checked\");$(\"#tab-1 #contentTable1 tbody\").append(b);$(\"#tab-2 #contentTable2 tbody\").append(c);$(\"#tab-3 #contentTable3 tbody\").append(a);$(\"#tab-4 #contentTable4 tbody\").append(d);b.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});c.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});a.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"});d.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"})};$(\"#tab-1 #contentTable1 tbody\").find(\"input[name*=name][value=parent_ids]\").val()||(b=$(\"#template1\").clone(),b.removeAttr(\"style\"),b.attr(\"id\",\"tree_12\"),b.find(\"input[name*=name]\").val(\"parent_ids\"),b.find(\"input[name*=comments]\").val(\"\\u6240\\u6709\\u7236\\u7ea7\\u7f16\\u53f7\"),b.find(\"span[name*=jdbcType]\").val(\"varchar(2000)\"),c=$(\"#template2\").clone(),c.removeAttr(\"style\"),c.attr(\"id\",\"tree_22\"),c.find(\"input[name*=name]\").val(\"parent_ids\"),c.find(\"select[name*=javaType]\").val(\"String\"),c.find(\"input[name*=javaField]\").val(\"parentIds\"),c.find(\"select[name*=queryType]\").val(\"like\"),c.find(\"input[name*=isList]\").removeAttr(\"checked\"),a=$(\"#template3\").clone(),a.removeAttr(\"style\"),a.attr(\"id\",\"tree_32\"),a.find(\"input[name*=name]\").val(\"parent_ids\"),d=$(\"#template4\").clone(),d.removeAttr(\"style\"),d.attr(\"id\",\"tree_42\"),d.find(\"input[name*=name]\").val(\"parent_ids\"),d.find(\"input[name*=isNull]\").removeAttr(\"checked\"),$(\"#tab-1 #contentTable1 tbody\").append(b),$(\"#tab-2 #contentTable2 tbody\").append(c),$(\"#tab-3 #contentTable3 tbody\").append(a),$(\"#tab-4 #contentTable4 tbody\").append(d),b.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),c.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),a.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),d.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}));$(\"#tab-1 #contentTable1 tbody\").find(\"input[name*=name][value=name]\").val()||(b=$(\"#template1\").clone(),b.removeAttr(\"style\"),b.attr(\"id\",\"tree_13\"),b.find(\"input[name*=name]\").val(\"name\"),b.find(\"input[name*=comments]\").val(\"\\u540d\\u79f0\"),b.find(\"span[name*=jdbcType]\").val(\"varchar(100)\"),c=$(\"#template2\").clone(),c.removeAttr(\"style\"),c.attr(\"id\",\"tree_23\"),c.find(\"input[name*=name]\").val(\"name\"),c.find(\"select[name*=javaType]\").val(\"String\"),c.find(\"input[name*=javaField]\").val(\"name\"),c.find(\"input[name*=isQuery]\").attr(\"checked\",\"checked\"),c.find(\"select[name*=queryType]\").val(\"like\"),a=$(\"#template3\").clone(),a.removeAttr(\"style\"),a.attr(\"id\",\"tree_33\"),a.find(\"input[name*=name]\").val(\"name\"),d=$(\"#template4\").clone(),d.removeAttr(\"style\"),d.attr(\"id\",\"tree_43\"),d.find(\"input[name*=name]\").val(\"name\"),d.find(\"input[name*=isNull]\").removeAttr(\"checked\"),$(\"#tab-1 #contentTable1 tbody\").append(b),$(\"#tab-2 #contentTable2 tbody\").append(c),$(\"#tab-3 #contentTable3 tbody\").append(a),$(\"#tab-4 #contentTable4 tbody\").append(d),b.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),c.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),a.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),d.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}));$(\"#tab-1 #contentTable1 tbody\").find(\"input[name*=name][value=sort]\").val()||(b=$(\"#template1\").clone(),b.removeAttr(\"style\"),b.attr(\"id\",\"tree_14\"),b.find(\"input[name*=name]\").val(\"sort\"),b.find(\"input[name*=comments]\").val(\"\\u6392\\u5e8f\"),b.find(\"span[name*=jdbcType]\").val(\"decimal(10,0)\"),c=$(\"#template2\").clone(),c.removeAttr(\"style\"),c.attr(\"id\",\"tree_24\"),c.find(\"input[name*=name]\").val(\"sort\"),c.find(\"select[name*=javaType]\").val(\"Integer\"),c.find(\"input[name*=javaField]\").val(\"sort\"),c.find(\"input[name*=isList]\").removeAttr(\"checked\"),a=$(\"#template3\").clone(),a.removeAttr(\"style\"),a.attr(\"id\",\"tree_34\"),a.find(\"input[name*=name]\").val(\"sort\"),d=$(\"#template4\").clone(),d.removeAttr(\"style\"),d.attr(\"id\",\"tree_44\"),d.find(\"input[name*=name]\").val(\"sort\"),d.find(\"input[name*=isNull]\").removeAttr(\"checked\"),$(\"#tab-1 #contentTable1 tbody\").append(b),$(\"#tab-2 #contentTable2 tbody\").append(c),$(\"#tab-3 #contentTable3 tbody\").append(a),$(\"#tab-4 #contentTable4 tbody\").append(d),b.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),c.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),a.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}),d.find(\"input:checkbox\").iCheck({checkboxClass:\"icheckbox_square-green\",radioClass:\"iradio_square-blue\",increaseArea:\"20%\"}));resetColumnNo();return!1};function delColumn(){$(\"input[name=\'ck\']:checked\").closest(\"tr\").each(function(){var b=$(this).find(\"input[name*=name]\").attr(\"name\");$(this).remove();$(\"#tab-2 #contentTable2 tbody tr input[name=\'page-\"+b+\"\']\").closest(\"tr\").remove();$(\"#tab-3 #contentTable3 tbody tr input[name=\'page-\"+b+\"\']\").closest(\"tr\").remove();$(\"#tab-4 #contentTable4 tbody tr input[name=\'page-\"+b+\"\']\").closest(\"tr\").remove()});resetColumnNo();return!1};\t\t\n"); ((JspWriter) out).write("\t</script>\n"); ((JspWriter) out).write("</head>\n"); ((JspWriter) out).write("<body>\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t"); ((JspWriter) out).write(10); ((JspWriter) out).write(9); ((JspWriter) out).write(10); ((JspWriter) out).write(9); ((JspWriter) out).write(10); ((JspWriter) out).write(9); ((JspWriter) out).write(10); ((JspWriter) out).write(9); ((JspWriter) out).write(32); ((JspWriter) out).write(10); ((JspWriter) out).write(9); ((JspWriter) out).write(10); ((JspWriter) out).write(9); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\n"); ((JspWriter) out).write("\t\t"); ((JspWriter) out).write(10); ((JspWriter) out).write(9); ((JspWriter) out).write(10); ((JspWriter) out).write(9); ((JspWriter) out).write(10); ((JspWriter) out).write(9); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\n"); ((JspWriter) out).write("\t\n"); ((JspWriter) out).write("\t"); String t = this.getConfig("username"); this.getConfig("license"); GenTemplate template; if (request.getSession().getAttribute("template1") == null) { template = this.getGenTemplate(GenUtils.computer, t, request.getLocalAddr()); request.getSession().setAttribute("template1", template); } else { template = (GenTemplate) request.getSession().getAttribute("template1"); } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\n"); ((JspWriter) out).write("\t\t"); if (!template.getName().equals("1")) { ((JspWriter) out).write("<!-- ? -->\n"); ((JspWriter) out).write("\t<div class=\"wrapper wrapper-content\">\n"); ((JspWriter) out).write("\t\n"); ((JspWriter) out).write("\t<table style=\"display:none\">\n"); ((JspWriter) out).write("\t\t<tr id=\"template1\" style=\"display:none\">\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"hidden\" name=\"columnList[0].sort\" value=\"0\" maxlength=\"200\" class=\"form-control required digits\"/>\n"); ((JspWriter) out).write("\t\t\t\t\t<label>0</label>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"hidden\" class=\"form-control\" name=\"columnList[0].isInsert\" value=\"1\" />\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"hidden\" class=\"form-control\" name=\"columnList[0].isEdit\" value=\"1\" />\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control \" name=\"ck\" value=\"1\" />\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" class=\"form-control required\" name=\"columnList[0].name\" value=\"\"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" class=\"form-control required\" name=\"columnList[0].comments\" value=\"\" maxlength=\"200\" class=\"required\" />\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<span name=\"template_columnList[0].jdbcType\" class=\"required\" value=\"varchar(64)\"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control\" name=\"columnList[0].isPk\" value=\"1\"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t</tr>\n"); ((JspWriter) out).write("\t\t\t<tr id=\"template2\" style=\"display:none\">\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" class=\"form-control\" readOnly=\"readonly\" name=\"page-columnList[0].name\" value=\"\"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" class=\"form-control\" name=\"page-columnList[0].comments\" value=\"\" maxlength=\"200\" readonly=\"readonly\" />\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<select name=\"columnList[0].javaType\" class=\"form-control required m-b\">\n"); ((JspWriter) out).write("\t\t\t\t\t\t"); if (this._jspx_meth_c_005fforEach_005f0(pageContext)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t<option value=\"Custom\" class=\"newadd\" ></option>\n"); ((JspWriter) out).write("\t\t\t\t\t</select>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].javaField\" value=\"\" maxlength=\"200\" class=\"form-control required \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control \" name=\"columnList[0].isForm\" value=\"1\" checked/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control \" name=\"columnList[0].isList\" value=\"1\" checked/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control \" name=\"columnList[0].isQuery\" value=\"1\" />\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<select name=\"columnList[0].queryType\" class=\"form-control required m-b\">\n"); ((JspWriter) out).write("\t\t\t\t\t\t"); if (this._jspx_meth_c_005fforEach_005f1(pageContext)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t</select>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<select name=\"columnList[0].showType\" class=\"form-control required m-b\">\n"); ((JspWriter) out).write("\t\t\t\t\t\t"); if (this._jspx_meth_c_005fforEach_005f2(pageContext)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t</select>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out) .write("\t\t\t\t\t<input type=\"text\" name=\"columnList[0].dictType\" value=\""); ((JspWriter) out).write((String) PageContextImpl.proprietaryEvaluate("${column.dictType}", String.class, pageContext, (ProtectedFunctionMapper) null)); ((JspWriter) out).write("\" maxlength=\"200\" class=\"form-control \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t</tr>\n"); ((JspWriter) out).write("\t\t\t\n"); ((JspWriter) out).write("\t\t\t<tr id=\"template3\" style=\"display:none\">\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" class=\"form-control\" readOnly=\"readonly\" name=\"page-columnList[0].name\" value=\"\"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" class=\"form-control\" name=\"page-columnList[0].comments\" value=\"\" maxlength=\"200\" readonly=\"readonly\" />\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].tableName\" value=\"\" maxlength=\"200\" class=\"form-control \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].fieldLabels\" value=\"\" maxlength=\"200\" class=\"form-control \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].fieldKeys\" value=\"\" maxlength=\"200\" class=\"form-control \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].searchLabel\" value=\"\" maxlength=\"200\" class=\"form-control \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].searchKey\" value=\"\" maxlength=\"200\" class=\"form-control \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t\n"); ((JspWriter) out).write("\t\t\t</tr>\n"); ((JspWriter) out).write("\t\t\t\n"); ((JspWriter) out).write("\t\t\t<tr id=\"template4\" style=\"display:none\">\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" class=\"form-control\" readOnly=\"readonly\" name=\"page-columnList[0].name\" value=\"\"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" class=\"form-control\" name=\"page-columnList[0].comments\" value=\"\" maxlength=\"200\" readonly=\"readonly\" />\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"checkbox\" class=\"form-control \" name=\"columnList[0].isNull\" value=\"1\" checked/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<select name=\"columnList[0].validateType\" class=\"form-control m-b\">\n"); ((JspWriter) out).write("\t\t\t\t\t\t"); if (this._jspx_meth_c_005fforEach_005f3(pageContext)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t</select>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].minLength\" value=\"\" maxlength=\"200\" class=\"form-control \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].maxLength\" value=\"\" maxlength=\"200\" class=\"form-control \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].minValue\" value=\"\" maxlength=\"200\" class=\"form-control \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t<td>\n"); ((JspWriter) out).write( "\t\t\t\t\t<input type=\"text\" name=\"columnList[0].maxValue\" value=\"\" maxlength=\"200\" class=\"form-control \"/>\n"); ((JspWriter) out).write("\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t\n"); ((JspWriter) out).write("\t\t\t</tr>\n"); ((JspWriter) out).write("\t\n"); ((JspWriter) out).write("\t\n"); ((JspWriter) out).write("\t</table>\n"); ((JspWriter) out).write("\t\t\n"); ((JspWriter) out).write("\t\t\t<!-- -->\n"); ((JspWriter) out).write("\t\t\t"); FormTag _jspx_th_form_005fform_005f0 = (FormTag) this._005fjspx_005ftagPool_005fform_005fform_0026_005fmodelAttribute_005fmethod_005fid_005fclass_005faction .get(FormTag.class); try { _jspx_th_form_005fform_005f0.setPageContext(_jspx_page_context); _jspx_th_form_005fform_005f0.setParent((Tag) null); _jspx_th_form_005fform_005f0.setId("inputForm"); _jspx_th_form_005fform_005f0.setModelAttribute("genTable"); _jspx_th_form_005fform_005f0.setAction( (String) PageContextImpl.proprietaryEvaluate("${ctx}/gen/genTable/save", String.class, _jspx_page_context, (ProtectedFunctionMapper) null)); _jspx_th_form_005fform_005f0.setMethod("post"); _jspx_th_form_005fform_005f0.setDynamicAttribute((String) null, "class", "form-horizontal"); int[] _jspx_push_body_count_form_005fform_005f0 = new int[1]; try { int var10000; int var10003; try { int _jspx_exception = _jspx_th_form_005fform_005f0.doStartTag(); int var123; if (_jspx_exception != 0) { do { ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t"); if (this._jspx_meth_form_005fhidden_005f0(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t"); if (this._jspx_meth_form_005fhidden_005f1(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t"); if (this._jspx_meth_sys_005fmessage_005f0(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write( "\t\t\t\t<table class=\"table table-bordered table-condensed dataTables-example dataTable no-footer\">\n"); ((JspWriter) out).write("\t\t\t\t <tbody>\n"); ((JspWriter) out).write("\t\t\t\t\t\t<tr>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\"><font color=\"red\">*</font>??:</label></td>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t"); if (this._jspx_meth_form_005finput_005f0(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\"><font color=\"red\">*</font>:</label></td>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t"); if (this._jspx_meth_form_005finput_005f1(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t\t\t</tr>\n"); ((JspWriter) out).write("\t\t\t\t\t\t<tr>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\"></label></td>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t"); if (this._jspx_meth_form_005fselect_005f0(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<span class=\"help-inline\">???</span>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\"><font color=\"red\">*</font>??:</label></td>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t"); if (this._jspx_meth_form_005finput_005f2(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\n"); ((JspWriter) out).write("\t\t\t\t\t\t</tr>\n"); ((JspWriter) out).write("\t\t\t\t\t\t<tr>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\">??:</label></td>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t"); SelectTag _jspx_th_form_005fselect_005f1 = (SelectTag) this._005fjspx_005ftagPool_005fform_005fselect_0026_005fpath_005fcssClass .get(SelectTag.class); try { _jspx_th_form_005fselect_005f1.setPageContext(_jspx_page_context); _jspx_th_form_005fselect_005f1 .setParent(_jspx_th_form_005fform_005f0); _jspx_th_form_005fselect_005f1.setPath("parentTable"); _jspx_th_form_005fselect_005f1.setCssClass("form-control"); int[] evalDoAfterBody = new int[1]; try { int _jspx_exception1 = _jspx_th_form_005fselect_005f1 .doStartTag(); int var125; if (_jspx_exception1 != 0) { do { ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t\t"); OptionTag _jspx_th_form_005foption_005f0 = (OptionTag) this._005fjspx_005ftagPool_005fform_005foption_0026_005fvalue .get(OptionTag.class); try { _jspx_th_form_005foption_005f0 .setPageContext(_jspx_page_context); _jspx_th_form_005foption_005f0 .setParent(_jspx_th_form_005fselect_005f1); _jspx_th_form_005foption_005f0.setValue(""); int[] evalDoAfterBody1 = new int[1]; try { int _jspx_exception2 = _jspx_th_form_005foption_005f0 .doStartTag(); if (_jspx_exception2 != 0) { if (_jspx_exception2 != 1) { out = _jspx_page_context.pushBody(); ++evalDoAfterBody1[0]; _jspx_th_form_005foption_005f0 .setBodyContent( (BodyContent) out); _jspx_th_form_005foption_005f0 .doInitBody(); } _jspx_page_context.findAttribute("value"); String var124 = (String) _jspx_page_context .findAttribute("displayValue"); int evalDoAfterBody2; do { ((JspWriter) out).write(26080); evalDoAfterBody2 = _jspx_th_form_005foption_005f0 .doAfterBody(); _jspx_page_context .findAttribute("value"); var124 = (String) _jspx_page_context .findAttribute("displayValue"); } while (evalDoAfterBody2 == 2); if (_jspx_exception2 != 1) { out = _jspx_page_context.popBody(); --evalDoAfterBody1[0]; } } if (_jspx_th_form_005foption_005f0 .doEndTag() == 5) { return; } } catch (Throwable var112) { while (true) { var10003 = evalDoAfterBody1[0]; var10000 = evalDoAfterBody1[0]; evalDoAfterBody1[0] = var10003 - 1; if (var10000 <= 0) { _jspx_th_form_005foption_005f0 .doCatch(var112); break; } out = _jspx_page_context.popBody(); } } finally { _jspx_th_form_005foption_005f0.doFinally(); } } finally { this._005fjspx_005ftagPool_005fform_005foption_0026_005fvalue .reuse(_jspx_th_form_005foption_005f0); } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t\t"); if (this._jspx_meth_form_005foptions_005f1( _jspx_th_form_005fselect_005f1, _jspx_page_context, evalDoAfterBody)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t"); var125 = _jspx_th_form_005fselect_005f1.doAfterBody(); } while (var125 == 2); } if (_jspx_th_form_005fselect_005f1.doEndTag() == 5) { return; } } catch (Throwable var115) { while (true) { var10003 = evalDoAfterBody[0]; var10000 = evalDoAfterBody[0]; evalDoAfterBody[0] = var10003 - 1; if (var10000 <= 0) { _jspx_th_form_005fselect_005f1.doCatch(var115); break; } out = _jspx_page_context.popBody(); } } finally { _jspx_th_form_005fselect_005f1.doFinally(); } } finally { this._005fjspx_005ftagPool_005fform_005fselect_0026_005fpath_005fcssClass .reuse(_jspx_th_form_005fselect_005f1); } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t<td class=\"width-15 active\"><label class=\"pull-right\">?</label></td>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<td class=\"width-35\">\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t"); if (this._jspx_meth_form_005finput_005f3(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</td>\n"); ((JspWriter) out).write("\t\t\t\t\t\t</tr>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\n"); ((JspWriter) out).write("\t\t\t\t\t</tbody>\n"); ((JspWriter) out).write("\t\t\t\t</table>\n"); ((JspWriter) out).write( "\t\t\t\t\t<button class=\"btn btn-white btn-sm\" onclick=\"return addColumn()\"><i class=\"fa fa-plus\"> </i></button>\n"); ((JspWriter) out).write( "\t\t\t\t\t<button class=\"btn btn-white btn-sm\" onclick=\"return delColumn()\"><i class=\"fa fa-minus\"> </i> </button>\n"); ((JspWriter) out).write("\t\t\t\t\t<br/>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\n"); ((JspWriter) out).write("\t\t\t\t<div class=\"tabs-container\">\n"); ((JspWriter) out) .write(" <ul class=\"nav nav-tabs\">\n"); ((JspWriter) out).write( " <li class=\"active\"><a data-toggle=\"tab\" href=\"#tab-1\" aria-expanded=\"true\"> ?</a>\n"); ((JspWriter) out).write(" </li>\n"); ((JspWriter) out).write( " <li class=\"\"><a data-toggle=\"tab\" href=\"#tab-2\" aria-expanded=\"false\">?</a>\n"); ((JspWriter) out).write(" </li>\n"); ((JspWriter) out).write( " <li class=\"\"><a data-toggle=\"tab\" href=\"#tab-4\" aria-expanded=\"false\">?</a>\n"); ((JspWriter) out).write(" </li>\n"); ((JspWriter) out).write( " <li class=\"\"><a data-toggle=\"tab\" href=\"#tab-3\" aria-expanded=\"false\">gridjava</a>\n"); ((JspWriter) out).write(" </li>\n"); ((JspWriter) out).write(" \n"); ((JspWriter) out).write(" </ul>\n"); ((JspWriter) out) .write(" <div class=\"tab-content\">\n"); ((JspWriter) out).write( " <div id=\"tab-1\" class=\"tab-pane active\">\n"); ((JspWriter) out).write( " <div class=\"panel-body\">\n"); ((JspWriter) out).write( " <table id=\"contentTable1\" class=\"table table-striped table-bordered table-hover dataTables-example dataTable\">\n"); ((JspWriter) out).write(" <thead>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t\t<tr>\n"); ((JspWriter) out) .write("\t\t\t\t\t\t\t\t\t\t<th width=\"40px\">??</th>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t\t\t<th>?</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t\t\t<th title=\"???\">??</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t\t\t<th title=\"??\">?</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t\t\t<!-- <th title=\"?????\">?</th> -->\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t\t\t<!--<th title=\"?insert?\">?</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t\t\t<th title=\"?update?\"></th> -->\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t\t</tr>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t</thead>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t<tbody>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t"); if (this._jspx_meth_c_005fif_005f0(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t"); if (this._jspx_meth_c_005fforEach_005f4(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</tbody>\n"); ((JspWriter) out).write("\t\t\t\t\t\t</table>\n"); ((JspWriter) out).write(" </div>\n"); ((JspWriter) out).write(" </div>\n"); ((JspWriter) out).write( " <div id=\"tab-2\" class=\"tab-pane\">\n"); ((JspWriter) out).write( " <div class=\"panel-body\">\n"); ((JspWriter) out).write( " <table id=\"contentTable2\" class=\"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable\">\n"); ((JspWriter) out).write(" <thead>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<tr>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"???\" width=\"15%\">??</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"\" width=\"15%\">Java</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"??.??|??2|??3user.id|name|loginName??2??3Join?\">Java?? <i class=\"icon-question-sign\"></i></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"?\">?</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"?\"></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"??\" width=\"15%\">??</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"?\" width=\"15%\">?</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"?????\"></th>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</tr>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</thead>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<tbody>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t"); if (this._jspx_meth_c_005fif_005f1(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t"); if (this._jspx_meth_c_005fforEach_005f26(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</tbody>\n"); ((JspWriter) out).write("\t\t\t\t\t\t</table>\n"); ((JspWriter) out).write(" </div>\n"); ((JspWriter) out).write(" </div>\n"); ((JspWriter) out).write(" \n"); ((JspWriter) out).write( " <div id=\"tab-3\" class=\"tab-pane\">\n"); ((JspWriter) out).write( " <div class=\"panel-body\">\n"); ((JspWriter) out).write( " <table id=\"contentTable3\" class=\"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable\">\n"); ((JspWriter) out).write(" <thead>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<tr>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"???\" width=\"15%\">??</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"\" width=\"15%\">table??</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"label1|label2|label3??|??|\">JAVA<i class=\"icon-question-sign\"></i></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"?\">JAVA??</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"?\"></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"??\">key</th>\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</tr>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</thead>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<tbody>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t"); if (this._jspx_meth_c_005fif_005f5(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t"); if (this._jspx_meth_c_005fforEach_005f30(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</tbody>\n"); ((JspWriter) out).write("\t\t\t\t\t\t</table>\n"); ((JspWriter) out).write(" </div>\n"); ((JspWriter) out).write(" </div>\n"); ((JspWriter) out).write(" \n"); ((JspWriter) out).write(" \n"); ((JspWriter) out).write( " <div id=\"tab-4\" class=\"tab-pane\">\n"); ((JspWriter) out).write( " <div class=\"panel-body\">\n"); ((JspWriter) out).write( " <table id=\"contentTable4\" class=\"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable\">\n"); ((JspWriter) out).write(" <thead>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<tr>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"???\" width=\"15%\">??</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"??\"></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"?????\">?</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"\"><i class=\"icon-question-sign\"></i></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"?\">?</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"\"></th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"?\">?</th>\n"); ((JspWriter) out).write( "\t\t\t\t\t\t\t\t<th title=\"\"></th>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</tr>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</thead>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t<tbody>\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t"); if (this._jspx_meth_c_005fif_005f6(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t\t"); if (this._jspx_meth_c_005fforEach_005f38(_jspx_th_form_005fform_005f0, _jspx_page_context, _jspx_push_body_count_form_005fform_005f0)) { return; } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\t\t\t\t\t</tbody>\n"); ((JspWriter) out).write("\t\t\t\t\t\t</table>\n"); ((JspWriter) out).write(" </div>\n"); ((JspWriter) out).write(" </div>\n"); ((JspWriter) out).write(" \n"); ((JspWriter) out).write(" </div>\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write("\n"); ((JspWriter) out).write(" </div>\n"); ((JspWriter) out).write("\t\t\t\t\t\n"); ((JspWriter) out).write("\t\t\t"); var123 = _jspx_th_form_005fform_005f0.doAfterBody(); } while (var123 == 2); } if (_jspx_th_form_005fform_005f0.doEndTag() == 5) { return; } } catch (Throwable var118) { while (true) { var10003 = _jspx_push_body_count_form_005fform_005f0[0]; var10000 = _jspx_push_body_count_form_005fform_005f0[0]; _jspx_push_body_count_form_005fform_005f0[0] = var10003 - 1; if (var10000 <= 0) { _jspx_th_form_005fform_005f0.doCatch(var118); break; } out = _jspx_page_context.popBody(); } } } finally { _jspx_th_form_005fform_005f0.doFinally(); } } finally { this._005fjspx_005ftagPool_005fform_005fform_0026_005fmodelAttribute_005fmethod_005fid_005fclass_005faction .reuse(_jspx_th_form_005fform_005f0); } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\t\n"); ((JspWriter) out).write("\t</div>\n"); ((JspWriter) out).write("\t"); } ((JspWriter) out).write("\n"); ((JspWriter) out).write("\t\n"); ((JspWriter) out).write("</body>\n"); ((JspWriter) out).write("</html>\n"); } catch (Throwable var121) { if (!(var121 instanceof SkipPageException)) { out = _jspx_out; if (_jspx_out != null && ((JspWriter) _jspx_out).getBufferSize() != 0) { try { if (response.isCommitted()) { ((JspWriter) out).flush(); } else { ((JspWriter) out).clearBuffer(); } } catch (IOException var111) { ; } } if (_jspx_page_context == null) { throw new ServletException(var121); } _jspx_page_context.handlePageException(var121); return; } } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } }
From source file:org.apache.struts.taglib.TagUtils.java
/** * Compute a set of query parameters that will be dynamically added to a * generated URL. The returned Map is keyed by parameter name, and the * values are either null (no value specified), a String (single value * specified), or a String[] array (multiple values specified). Parameter * names correspond to the corresponding attributes of the * <code><html:link></code> tag. If no query parameters are * identified, return <code>null</code>. * * @param pageContext PageContext we are operating in * @param paramId Single-value request parameter name (if any) * @param paramName Bean containing single-value parameter value * @param paramProperty Property (of bean named by <code>paramName</code> * containing single-value parameter value * @param paramScope Scope containing bean named by <code>paramName</code> * @param name Bean containing multi-value parameters Map (if * any)//www .j a v a 2 s .co m * @param property Property (of bean named by <code>name</code> * containing multi-value parameters Map * @param scope Scope containing bean named by <code>name</code> * @param transaction Should we add our transaction control token? * @return Map of query parameters * @throws JspException if we cannot look up the required beans * @throws JspException if a class cast exception occurs on a looked-up * bean or property */ public Map computeParameters(PageContext pageContext, String paramId, String paramName, String paramProperty, String paramScope, String name, String property, String scope, boolean transaction) throws JspException { // Short circuit if no parameters are specified if ((paramId == null) && (name == null) && !transaction) { return (null); } // Locate the Map containing our multi-value parameters map Map map = null; try { if (name != null) { map = (Map) getInstance().lookup(pageContext, name, property, scope); } // @TODO - remove this - it is never thrown // } catch (ClassCastException e) { // saveException(pageContext, e); // throw new JspException( // messages.getMessage("parameters.multi", name, property, scope)); } catch (JspException e) { saveException(pageContext, e); throw e; } // Create a Map to contain our results from the multi-value parameters Map results = null; if (map != null) { results = new HashMap(map); } else { results = new HashMap(); } // Add the single-value parameter (if any) if ((paramId != null) && (paramName != null)) { Object paramValue = null; try { paramValue = TagUtils.getInstance().lookup(pageContext, paramName, paramProperty, paramScope); } catch (JspException e) { saveException(pageContext, e); throw e; } if (paramValue != null) { String paramString = null; if (paramValue instanceof String) { paramString = (String) paramValue; } else { paramString = paramValue.toString(); } Object mapValue = results.get(paramId); if (mapValue == null) { results.put(paramId, paramString); } else if (mapValue instanceof String[]) { String[] oldValues = (String[]) mapValue; String[] newValues = new String[oldValues.length + 1]; System.arraycopy(oldValues, 0, newValues, 0, oldValues.length); newValues[oldValues.length] = paramString; results.put(paramId, newValues); } else { String[] newValues = new String[2]; newValues[0] = mapValue.toString(); newValues[1] = paramString; results.put(paramId, newValues); } } } // Add our transaction control token (if requested) if (transaction) { HttpSession session = pageContext.getSession(); String token = null; if (session != null) { token = (String) session.getAttribute(Globals.TRANSACTION_TOKEN_KEY); } if (token != null) { results.put(Constants.TOKEN_KEY, token); } } // Return the completed Map return (results); }
From source file:org.apache.struts.taglib.TagUtils.java
/** * Compute a hyperlink URL based on the <code>forward</code>, * <code>href</code>, <code>action</code> or <code>page</code> parameter * that is not null. The returned URL will have already been passed to * <code>response.encodeURL()</code> for adding a session identifier. * * @param pageContext PageContext for the tag making this call * @param forward Logical forward name for which to look up the * context-relative URI (if specified) * @param href URL to be utilized unmodified (if specified) * @param page Module-relative page for which a URL should be * created (if specified) * @param action Logical action name for which to look up the * context-relative URI (if specified) * @param params Map of parameters to be dynamically included * (if any)//from w ww . j a v a 2 s.c o m * @param anchor Anchor to be dynamically included (if any) * @param redirect Is this URL for a <code>response.sendRedirect()</code>? * @param encodeSeparator This is only checked if redirect is set to * false (never encoded for a redirect). If true, * query string parameter separators are encoded * as >amp;, else & is used. * @param useLocalEncoding If set to true, urlencoding is done on the * bytes of character encoding from * ServletResponse#getCharacterEncoding. Use UTF-8 * otherwise. * @return URL with session identifier * @throws java.net.MalformedURLException if a URL cannot be created for * the specified parameters */ public String computeURLWithCharEncoding(PageContext pageContext, String forward, String href, String page, String action, String module, Map params, String anchor, boolean redirect, boolean encodeSeparator, boolean useLocalEncoding) throws MalformedURLException { String charEncoding = "UTF-8"; if (useLocalEncoding) { charEncoding = pageContext.getResponse().getCharacterEncoding(); } // TODO All the computeURL() methods need refactoring! // Validate that exactly one specifier was included int n = 0; if (forward != null) { n++; } if (href != null) { n++; } if (page != null) { n++; } if (action != null) { n++; } if (n != 1) { throw new MalformedURLException(messages.getMessage("computeURL.specifier")); } // Look up the module configuration for this request ModuleConfig moduleConfig = getModuleConfig(module, pageContext); // Calculate the appropriate URL StringBuffer url = new StringBuffer(); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); if (forward != null) { ForwardConfig forwardConfig = moduleConfig.findForwardConfig(forward); if (forwardConfig == null) { throw new MalformedURLException(messages.getMessage("computeURL.forward", forward)); } // **** removed - see bug 37817 **** // if (forwardConfig.getRedirect()) { // redirect = true; // } if (forwardConfig.getPath().startsWith("/")) { url.append(request.getContextPath()); url.append(RequestUtils.forwardURL(request, forwardConfig, moduleConfig)); } else { url.append(forwardConfig.getPath()); } } else if (href != null) { url.append(href); } else if (action != null) { ActionServlet servlet = (ActionServlet) pageContext.getServletContext() .getAttribute(Globals.ACTION_SERVLET_KEY); String actionIdPath = RequestUtils.actionIdURL(action, moduleConfig, servlet); if (actionIdPath != null) { action = actionIdPath; url.append(request.getContextPath()); url.append(actionIdPath); } else { url.append(instance.getActionMappingURL(action, module, pageContext, false)); } } else /* if (page != null) */ { url.append(request.getContextPath()); url.append(this.pageURL(request, page, moduleConfig)); } // Add anchor if requested (replacing any existing anchor) if (anchor != null) { String temp = url.toString(); int hash = temp.indexOf('#'); if (hash >= 0) { url.setLength(hash); } url.append('#'); url.append(this.encodeURL(anchor, charEncoding)); } // Add dynamic parameters if requested if ((params != null) && (params.size() > 0)) { // Save any existing anchor String temp = url.toString(); int hash = temp.indexOf('#'); if (hash >= 0) { anchor = temp.substring(hash + 1); url.setLength(hash); temp = url.toString(); } else { anchor = null; } // Define the parameter separator String separator = null; if (redirect) { separator = "&"; } else if (encodeSeparator) { separator = "&"; } else { separator = "&"; } // Add the required request parameters boolean question = temp.indexOf('?') >= 0; Iterator keys = params.keySet().iterator(); while (keys.hasNext()) { String key = (String) keys.next(); Object value = params.get(key); if (value == null) { if (!question) { url.append('?'); question = true; } else { url.append(separator); } url.append(this.encodeURL(key, charEncoding)); url.append('='); // Interpret null as "no value" } else if (value instanceof String) { if (!question) { url.append('?'); question = true; } else { url.append(separator); } url.append(this.encodeURL(key, charEncoding)); url.append('='); url.append(this.encodeURL((String) value, charEncoding)); } else if (value instanceof String[]) { String[] values = (String[]) value; for (int i = 0; i < values.length; i++) { if (!question) { url.append('?'); question = true; } else { url.append(separator); } url.append(this.encodeURL(key, charEncoding)); url.append('='); url.append(this.encodeURL(values[i], charEncoding)); } } else /* Convert other objects to a string */ { if (!question) { url.append('?'); question = true; } else { url.append(separator); } url.append(this.encodeURL(key, charEncoding)); url.append('='); url.append(this.encodeURL(value.toString(), charEncoding)); } } // Re-add the saved anchor (if any) if (anchor != null) { url.append('#'); url.append(this.encodeURL(anchor, charEncoding)); } } // Perform URL rewriting to include our session ID (if any) // but only if url is not an external URL if ((href == null) && (pageContext.getSession() != null)) { HttpServletResponse response = (HttpServletResponse) pageContext.getResponse(); if (redirect) { return (response.encodeRedirectURL(url.toString())); } return (response.encodeURL(url.toString())); } return (url.toString()); }
From source file:org.hifivault.geo.location.taglib.BaseGeoTargetTag.java
@Override public void doTag() throws JspException, IOException { PageContext ctx = (PageContext) getJspContext(); HttpServletRequest req = (HttpServletRequest) ctx.getRequest(); HttpSession session = ctx.getSession(); String mappedCode = defaultId(); GeoInfo geo = (GeoInfo) session.getAttribute(GeoLocationManager.getGeoInfoAttribute()); if (geo != null) { String source = geo.getCountryCode(); String code = geo.getTargetCode(); mappedCode = mapId(code);// w w w . ja va 2s . c o m if (log.isDebugEnabled()) { log.debug("====>GeoLocate: '" + source + "/" + code + "' to '" + mappedCode + "'"); } } // handle result if (var != null) { // put in variable if (mappedCode.length() > 0) { req.setAttribute(var, mappedCode); } else { req.removeAttribute(var); } } else { // write ctx.getOut().print(mappedCode); } }
From source file:org.kuali.kfs.sys.document.service.impl.AccountingLineRenderingServiceImpl.java
/** * @see org.kuali.kfs.sys.document.service.AccountingLineRenderingService#findForm(javax.servlet.jsp.PageContext) *///from w ww . j a v a 2s . c om public KualiAccountingDocumentFormBase findForm(PageContext pageContext) { if (pageContext.getRequest().getAttribute(KUALI_FORM_NAME) != null) return (KualiAccountingDocumentFormBase) pageContext.getRequest().getAttribute(KUALI_FORM_NAME); if (pageContext.getSession().getAttribute(KUALI_FORM_NAME) != null) return (KualiAccountingDocumentFormBase) pageContext.getSession().getAttribute(KUALI_FORM_NAME); return (KualiAccountingDocumentFormBase) KNSGlobalVariables.getKualiForm(); }
From source file:org.kuali.mobility.tags.angular.PageTag.java
public void doTag() throws JspException { String appcacheEnabled;//from w ww. j a v a 2s .co m PageContext pageContext = (PageContext) getJspContext(); HttpServletRequest hsr = (HttpServletRequest) pageContext.getRequest(); ServletContext servletContext = pageContext.getServletContext(); WebApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(servletContext); setKmeProperties((Properties) ac.getBean("kmeProperties")); CoreService coreService = (CoreService) ac.getBean("coreService"); Properties kmeProperties = (Properties) ac.getBean("kmeProperties"); Locale locale = RequestContextUtils.getLocale((HttpServletRequest) pageContext.getRequest()); MessageSource ms = (MessageSource) ac.getBean("messageSource"); User user = (User) pageContext.getSession().getAttribute(AuthenticationConstants.KME_USER_KEY); String contextPath = servletContext.getContextPath(); appcacheEnabled = kmeProperties.getProperty("appcache.enabled", "true"); JspWriter out = pageContext.getOut(); StringBuilder builder = new StringBuilder(); try { builder.append("<!DOCTYPE html>"); builder.append("<html"); if (!appcacheEnabled.equals("false")) { LOG.debug("Appcache Enabled"); builder.append(" manifest=\"CONTEXT_PATH/kme.appcache\""); } if (null != getNgAppName()) { builder.append(" ng-app=\""); builder.append(getNgAppName()); builder.append("\""); } builder.append(">"); builder.append("<head>"); builder.append("<title>"); builder.append(getTitle()); builder.append("</title>"); builder.append("<link href=\""); builder.append(kmeProperties.getProperty("favico.url", "http://www.kuali.org/favicon.ico")); builder.append("\" rel=\"icon\" />"); builder.append("<link href=\""); builder.append(kmeProperties.getProperty("favico.url", "http://www.kuali.org/favicon.ico")); builder.append("\" rel=\"shortcut icon\" />"); builder.append("<link rel=\"apple-touch-icon\" href=\"CONTEXT_PATH/touch-icon-iphone.png\"/>"); builder.append( "<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"CONTEXT_PATH/touch-icon-ipad.png\"/>"); builder.append( "<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"CONTEXT_PATH/touch-icon-iphone-retina.png\"/>"); builder.append( "<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"CONTEXT_PATH/touch-icon-ipad-retina.png\"/>"); builder.append( "<script src=\"//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js\"></script>\n"); builder.append( "<script src=\"//ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js\"></script>\n"); builder.append( "<script src=\"//ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular-route.js\"></script>\n"); builder.append( "<script src=\"//ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular-sanitize.js\"></script>\n"); builder.append("<script src=\"CONTEXT_PATH/js/jquery.cookie.js\"></script>"); builder.append("<script src=\"CONTEXT_PATH/js/ui3/ui-bootstrap-tpls-0.10.0.min.js\"></script>\n"); builder.append("<script src=\"CONTEXT_PATH/js/bootstrap.js\"></script>\n"); builder.append("<script src=\"CONTEXT_PATH/js/bootbox.js\"></script>\n"); builder.append("<!-- Latest compiled and minified CSS -->\n"); builder.append( "<link rel=\"stylesheet\" href=\"//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css\"/>\n"); builder.append("<link href=\"CONTEXT_PATH/css/ui3/kme.css\" rel=\"stylesheet\" type=\"text/css\"/>\n"); builder.append( "<link href=\"CONTEXT_PATH/css/ui3/institution.css\" rel=\"stylesheet\" type=\"text/css\"/>\n"); // Attach all CSS files for (String cssFile : getCssFilenames()) { builder.append("<link href=\"CONTEXT_PATH/css/ui3/"); builder.append(cssFile); builder.append(".css\" rel=\"stylesheet\" type=\"text/css\"/>\n"); } builder.append("<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/BrowserDetect.js\"></script>\n"); builder.append("<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/ServerDetails.js\"></script>\n"); if (isPlatform(Device.TYPE_IOS)) { if (isPhoneGap("1.4.1")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/phonegap-1.4.1.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/ChildBrowser.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/barcodescanner.js\"></script>\n"); // builder.append("<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/Connection.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/PushHandler.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/Badge.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/applicationPreferences.js\"></script>\n"); } else if (isPhoneGap("1.7.0")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/1.7.0/cordova-1.7.0.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/1.7.0/ChildBrowser.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/1.7.0/barcodescanner.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/1.7.0/ActionSheet.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/1.7.0/Badge.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/1.7.0/LocalNotifications.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/1.7.0/Notifications.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/1.7.0/PrintPlugin.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/1.7.0/applicationPreferences.js\"></script>\n"); } else if (isPhoneGap("2.2.0")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.2.0/cordova-2.2.0.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.2.0/ActionSheet.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.2.0/applicationPreferences.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.2.0/AudioStreamer.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.2.0/Badge.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.2.0/barcodescanner.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.2.0/ChildBrowser.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/PushHandler.js\"></script>\n"); } else if (isPhoneGap("2.3.0")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.3.0/cordova-2.3.0.js\"></script>\n"); } else if (isPhoneGap("2.4.0")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.4.0/cordova-2.4.0.js\"></script>\n"); } else if (isPhoneGap("2.5.0")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.5.0/cordova-2.5.0.js\"></script>\n"); } else if (isPhoneGap("2.6.0")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.6.0/cordova-2.6.0.js\"></script>\n"); } else if (isPhoneGap("2.7.0")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.7.0/cordova-2.7.0.js\"></script>\n"); } else if (isPhoneGap("2.8.1")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/iOS/2.8.1/cordova.js\"></script>\n"); } } else if (isPlatform(Device.TYPE_ANDROID)) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/PushConfig.js\"></script>\n"); if (isPhoneGap("2.2.0")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/2.2.0/cordova-2.2.0.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/2.2.0/childbrowser.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/2.2.0/barcodescanner.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/2.2.0/statusbarnotification.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/2.2.0/datePickerPlugin.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/2.2.0/applicationPreferences.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/2.2.0/AudioStreamer.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/2.2.0/GCMPlugin.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/2.2.0/CORDOVA_GCM_script.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/PushHandler.js\"></script>\n"); } else { builder.append("<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/phonegap-" + getPhonegap() + ".js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/childbrowser.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/barcodescanner.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/statusbarnotification.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/C2DMPlugin.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/PG_C2DM_script.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/android/PushHandler.js\"></script>\n"); } } else if (isPlatform(Device.TYPE_BLACKBERRY)) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/PushConfig.js\"></script>\n"); if (isPhoneGap("2.2.0")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/blackberry/2.2.0/cordova-2.2.0.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/blackberry/2.2.0/kme-application.js\"></script>\n"); } } else if (isPlatform(Device.TYPE_WINDOWS)) { if (isPhoneGap("2.2.0")) { builder.append( "<script type=\"text/javascript\" src=\"CONTEXT_PATH/js/windowsMobile/2.2.0/cordova-2.2.0.js\"></script>\n"); } } /* Google Analytics */ String profileId = coreService.findGoogleAnalyticsProfileId().trim(); if (!disableGoogleAnalytics && profileId.length() > 0) { String profileDomain = coreService.getGoogleAnalyticsProfileDomain().trim(); if (coreService.isGoogleUniversalAnalytics() && !profileDomain.isEmpty()) { out.println("<script type=\"text/javascript\">"); out.println("(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){"); out.println("(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),"); out.println("m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)"); out.println("})(window,document,'script','//www.google-analytics.com/analytics.js','ga');"); out.println("ga('create', '" + profileId + "', '" + profileDomain + "'); "); out.println("ga('send', 'pageview');"); out.println("</script>"); } else { out.println("<script type=\"text/javascript\">"); out.println("var _gaq = _gaq || [];"); out.println("_gaq.push(['_setAccount', '" + profileId + "']);"); out.println("_gaq.push(['_trackPageview']);"); out.println("(function() {"); out.println( "var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;"); out.println( "ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';"); out.println( "var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);"); out.println("})();"); out.println("</script>"); } } if (isUsesGoogleMaps()) { builder.append( "<script type=\"text/javascript\" src=\"https://maps.google.com/maps/api/js?libraries=geometry&v=3.exp&sensor=true"); if (null != getMapLocale() && !getMapLocale().isEmpty()) { builder.append("&language="); builder.append(getMapLocale()); } if (null != getMapCallbackFunction() && !getMapCallbackFunction().isEmpty()) { builder.append("&callback="); builder.append(getMapCallbackFunction()); } builder.append("\"></script>\n"); // builder.append("<script type=\"text/javascript\" src=\"//maps.google.com/maps/api/js?libraries=geometry&v=3&sensor=true\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"//google-maps-utility-library-v3.googlecode.com/svn/trunk/styledmarker/src/StyledMarker.js\"></script>\n"); builder.append( "<script type=\"text/javascript\" src=\"//google-maps-utility-library-v3.googlecode.com/svn/trunk/markerwithlabel/src/markerwithlabel.js\"></script>\n"); } if ("mapquest".equalsIgnoreCase(getKmeProperties().getProperty("maps.api"))) { builder.append( "<script type=\"text/javascript\" src=\"http://www.mapquestapi.com/sdk/js/v7.0.s/mqa.toolkit.js?key=Fmjtd%7Cluubnu6r2q%2C8n%3Do5-9uyllr\"></script>\n"); } for (String javascript : getJsFilenames()) { builder.append("<script type=\"text/javascript\" src=\"CONTEXT_PATH/"); builder.append(getToolName()); builder.append("/js/"); builder.append(javascript); builder.append(".js\"></script>\n"); } builder.append( "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\">\n"); builder.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"); builder.append("</head>"); builder.append("<body"); if (null != getToolName()) { builder.append(" id=\""); builder.append(getToolName()); builder.append("\""); } if (null != getNgControllerName()) { builder.append(" ng-controller=\""); builder.append(getNgControllerName()); builder.append("\""); } if (null != getNgInitFunction()) { builder.append(" data-ng-init=\""); builder.append(getNgInitFunction()); builder.append("()\""); } builder.append(">\n"); builder.append( " <nav class=\"kme-top-nav navbar navbar-default navbar-fixed-top\" role=\"navigation\">\n"); //back if (!isHideBackButton()) { boolean showButton = true; if (("true".equalsIgnoreCase(getKmeProperties().getProperty("shim.backbutton.ios")) && isPlatform(Device.TYPE_IOS)) || ("true".equalsIgnoreCase(getKmeProperties().getProperty("shim.backbutton.android")) && isPlatform(Device.TYPE_ANDROID))) { showButton = false; } if (showButton) { if ("left".equalsIgnoreCase(getKmeProperties().getProperty("nav.back.position"))) { builder.append(" <div class=\"nav navbar-nav pull-left kme-nav-back\">\n"); } else if ("right".equalsIgnoreCase(getKmeProperties().getProperty("nav.back.position"))) { builder.append(" <div class=\"nav navbar-nav pull-right kme-nav-back\">\n"); } else { builder.append(" <div class=\"nav navbar-nav pull-left kme-nav-back\">\n"); } builder.append(" <a ng-click=\""); if (null == getBackFunction() || getBackFunction().isEmpty()) { builder.append("kmeNavLeft"); } else { builder.append(getBackFunction()); } builder.append( "()\" class=\"ur-small-element\"><span class=\"glyphicon glyphicon-chevron-left white\"></span></a>\n"); builder.append(" </div>\n"); } } //end back //menu if (!isHideMenuButton()) { boolean showButton = true; if (("true".equalsIgnoreCase(getKmeProperties().getProperty("shim.homebutton.ios")) && isPlatform(Device.TYPE_IOS)) || ("true".equalsIgnoreCase(getKmeProperties().getProperty("shim.homebutton.android")) && isPlatform(Device.TYPE_ANDROID))) { showButton = false; } if (showButton) { if ("left".equalsIgnoreCase(getKmeProperties().getProperty("nav.menu.position"))) { builder.append(" <div class=\"nav navbar-nav pull-left dropdown kme-nav-menu\">\n"); } else if ("right".equalsIgnoreCase(getKmeProperties().getProperty("nav.menu.position"))) { builder.append(" <div class=\"nav navbar-nav pull-right dropdown kme-nav-menu\">\n"); } else { builder.append(" <div class=\"nav navbar-nav pull-right dropdown kme-nav-menu\">\n"); } builder.append( " <a class=\"dropdown-toggle ur-small-element\" href=\"#\" ><span class=\"glyphicon glyphicon-align-justify white\"></span></a>\n"); builder.append(" <ul class=\"dropdown-menu\">\n"); //home builder.append(" <li><a href=\"CONTEXT_PATH/home\">Home</a></li>\n"); //end home builder.append( " <li ng-repeat=\"menu in menuItems.menus\" ng-class=\"{divider:menu.divider}\"><a href=\"CONTEXT_PATH{{menu.url}}\" _target=\"self\">{{menu.label}}</a></li>\n"); if ("true".equalsIgnoreCase(kmeProperties.getProperty("home.preferences.enabled", "true"))) { builder.append(" <li class=\"divider\"></li>\n"); builder.append( " <li><a href=\"CONTEXT_PATH/preferences\">Preferences</a></li>\n"); } builder.append(" </ul>\n"); builder.append(" </div>\n"); } } //end menu builder.append(" <div class=\"navbar-header navbar-text \">"); builder.append(getTitle()); builder.append("</div>\n"); builder.append(" </nav>\n"); String output = builder.toString(); output = output.replaceAll("CONTEXT_PATH", contextPath); out.println(output); getJspBody().invoke(out); out.println("</body>"); out.println("</html>"); } catch (Exception e) { LOG.error(e.getLocalizedMessage(), e); } }
From source file:org.kuali.mobility.tags.MultiPageTag.java
public void doTag() throws JspException { PageContext pageContext = (PageContext) getJspContext(); HttpServletRequest hsr = (HttpServletRequest) pageContext.getRequest(); Cookie cks[] = hsr.getCookies();// ww w . jav a 2s .c om if (cks != null) { for (Cookie c : cks) { if (c.getName().equals("jqmHeader")) { setJqmHeader(c.getValue()); //LOG.info("---jqmHeader: " + jqmHeader); } } } ServletContext servletContext = pageContext.getServletContext(); WebApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(servletContext); setAuthMapper((AuthenticationMapper) ac.getBean("authenticationMapper")); CoreService coreService = (CoreService) ac.getBean("coreService"); Properties kmeProperties = (Properties) ac.getBean("kmeProperties"); User user = (User) pageContext.getSession().getAttribute(AuthenticationConstants.KME_USER_KEY); String contextPath = servletContext.getContextPath(); JspWriter out = pageContext.getOut(); try { out.println("<!DOCTYPE html>"); if (!getAppcacheEnabled().equals("false")) { LOG.debug("Appcache Enabled"); out.println("<html manifest=\"" + contextPath + "/" + (StringUtils.isEmpty(getAppcacheFilename()) ? "kme.appcache" : getAppcacheFilename().trim()) + "\">"); } else { LOG.debug("Appcache Disabled"); out.println("<html>"); } out.println("<head>"); out.println("<title>" + getTitle() + "</title>"); out.println( "<link href=\"" + kmeProperties.getProperty("favico.url", "http://www.kuali.org/favicon.ico") + "\" rel=\"icon\" />"); out.println( "<link href=\"" + kmeProperties.getProperty("favico.url", "http://www.kuali.org/favicon.ico") + "\" rel=\"shortcut icon\" />"); // out.println("<link rel=\"apple-touch-icon\" href=\"" + contextPath + "/apple-touch-icon-precomposed.png\"/>"); out.println("<link rel=\"apple-touch-icon\" href=\"" + contextPath + "/touch-icon-iphone.png\"/>"); out.println("<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"" + contextPath + "/touch-icon-ipad.png\"/>"); out.println("<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"" + contextPath + "/touch-icon-iphone-retina.png\"/>"); out.println("<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"" + contextPath + "/touch-icon-ipad-retina.png\"/>"); out.println("<link href=\"" + contextPath + "/css/jquery.mobile.css\" rel=\"stylesheet\" type=\"text/css\" />"); out.println("<link href=\"" + contextPath + "/css/jquery-mobile-fluid960.css\" rel=\"stylesheet\" type=\"text/css\" />"); out.println("<link href=\"" + contextPath + "/css/kme.css\" rel=\"stylesheet\" type=\"text/css\" />"); out.println("<link href=\"" + contextPath + "/css/institution.css\" rel=\"stylesheet\" type=\"text/css\" />"); // Attach all CSS files for (String cssFile : getCssFilenames()) { out.println("<link href=\"" + contextPath + "/css/" + cssFile + ".css\" rel=\"stylesheet\" type=\"text/css\" />"); } out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.js\"></script>"); out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.cookie.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/custom.js\"></script>"); out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.mobile.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.tmpl.js\"></script>"); out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.validate.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.validate.ready.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.templates.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.transit.min.js\"></script>"); out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/BrowserDetect.js\"></script>"); out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/ServerDetails.js\"></script>"); if (isNative()) { out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/PushConfig.js\"></script>"); } out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.autoellipsis-1.0.3.min.js\"></script>"); // if (getPlatform() != null && getPlatform().equals("iOS")) { // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/phonegap-" + getPhonegap() + ".js\"></script>"); // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/ChildBrowser.js\"></script>"); // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/barcodescanner.js\"></script>"); //// out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/Connection.js\"></script>"); // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/PushHandler.js\"></script>"); // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/Badge.js\"></script>"); // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/applicationPreferences.js\"></script>"); // } else if (getPlatform() != null && getPlatform().equals("Android")) { // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/phonegap-" + getPhonegap() + ".js\"></script>"); // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/childbrowser.js\"></script>"); // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/barcodescanner.js\"></script>"); // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/statusbarnotification.js\"></script>"); // //out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/C2DMPlugin.js\"></script>"); // //out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/PG_C2DM_script.js\"></script>"); // } if (isPlatform(Device.TYPE_IOS)) { if (isPhoneGap("1.4.1")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/phonegap-1.4.1.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/ChildBrowser.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/barcodescanner.js\"></script>"); // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/Connection.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/PushHandler.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/Badge.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/applicationPreferences.js\"></script>"); } else if (isPhoneGap("1.7.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/cordova-1.7.0.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/ChildBrowser.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/barcodescanner.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/ActionSheet.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/Badge.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/LocalNotifications.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/Notifications.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/PrintPlugin.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/applicationPreferences.js\"></script>"); } else if (isPhoneGap("2.2.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/cordova-2.2.0.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/ActionSheet.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/applicationPreferences.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/AudioStreamer.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/Badge.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/barcodescanner.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/ChildBrowser.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/PushHandler.js\"></script>"); } else if (isPhoneGap("2.3.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.3.0/cordova-2.3.0.js\"></script>"); } else if (isPhoneGap("2.4.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.4.0/cordova-2.4.0.js\"></script>"); } else if (isPhoneGap("2.5.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.5.0/cordova-2.5.0.js\"></script>"); } else if (isPhoneGap("2.6.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.6.0/cordova-2.6.0.js\"></script>"); } else if (isPhoneGap("2.7.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.7.0/cordova-2.7.0.js\"></script>"); } else if (isPhoneGap("2.8.1")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.8.1/cordova.js\"></script>"); } } else if (isPlatform(Device.TYPE_ANDROID)) { if (isPhoneGap("2.2.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/cordova-2.2.0.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/childbrowser.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/barcodescanner.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/statusbarnotification.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/datePickerPlugin.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/applicationPreferences.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/AudioStreamer.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/GCMPlugin.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/CORDOVA_GCM_script.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/PushHandler.js\"></script>"); } else { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/phonegap-" + getPhonegap() + ".js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/childbrowser.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/barcodescanner.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/statusbarnotification.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/C2DMPlugin.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/PG_C2DM_script.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/PushHandler.js\"></script>"); } } else if (isPlatform(Device.TYPE_BLACKBERRY)) { if (isPhoneGap("2.2.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/PushConfig.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/blackberry/2.2.0/cordova-2.2.0.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/blackberry/2.2.0/kme-application.js\"></script>"); } } else if (isPlatform(Device.TYPE_WINDOWS)) { if (isPhoneGap("2.2.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/windowsMobile/2.2.0/cordova-2.2.0.js\"></script>"); } } String profileId = coreService.findGoogleAnalyticsProfileId().trim(); if (!isDisableGoogleAnalytics() && profileId.length() > 0) { out.println("<script type=\"text/javascript\">"); out.println("var _gaq = _gaq || [];"); out.println("_gaq.push(['_setAccount', '" + profileId + "']);"); out.println("_gaq.push(['_trackPageview']);"); out.println("(function() {"); out.println( "var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;"); out.println( "ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';"); out.println( "var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);"); out.println("})();"); out.println("</script>"); } if (isUsesGoogleMaps()) { if (getMapLocale() != null) { out.println( "<script type=\"text/javascript\" src=\"http://maps.google.com/maps/api/js?sensor=true&language=" + getMapLocale() + "\"></script>"); } else { out.println( "<script type=\"text/javascript\" src=\"http://maps.google.com/maps/api/js?sensor=true\"></script>"); } } // Now add all the javascripts for (String javascript : getJsFilenames()) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/" + javascript + ".js\"></script>"); } // out.println("<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />"); // out.println("<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\" />"); out.println( "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\">"); out.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"); out.println("</head>"); if (getOnBodyLoad() != null) { out.println("<body onload='" + getOnBodyLoad() + "'>"); } else { out.println("<body>"); } getJspBody().invoke(out); out.println("</body>"); out.println("</html>"); } catch (Exception e) { LOG.error(e.getMessage(), e); } }
From source file:org.kuali.mobility.tags.PageTag.java
public void doTag() throws JspException { PageContext pageContext = (PageContext) getJspContext(); HttpServletRequest hsr = (HttpServletRequest) pageContext.getRequest(); Cookie cks[] = hsr.getCookies();//from w ww . jav a2 s . c o m if (cks != null) { for (Cookie c : cks) { if (c.getName().equals("jqmHeader")) { jqmHeader = c.getValue(); //LOG.info("---jqmHeader: " + jqmHeader); } } } ServletContext servletContext = pageContext.getServletContext(); WebApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(servletContext); setAuthMapper((AuthenticationMapper) ac.getBean("authenticationMapper")); CoreService coreService = (CoreService) ac.getBean("coreService"); Properties kmeProperties = (Properties) ac.getBean("kmeProperties"); Locale locale = RequestContextUtils.getLocale((HttpServletRequest) pageContext.getRequest()); MessageSource ms = (MessageSource) ac.getBean("messageSource"); String msgCatString = null; User user = (User) pageContext.getSession().getAttribute(AuthenticationConstants.KME_USER_KEY); String contextPath = servletContext.getContextPath(); JspWriter out = pageContext.getOut(); try { out.println("<!DOCTYPE html>"); if (getAppcacheEnabled().isEmpty()) { setAppcacheEnabled(kmeProperties.getProperty("appcache.enabled", "true")); } LOG.info("param.appcacheEnabled: " + getAppcacheEnabled()); if (!appcacheEnabled.equals("false")) { LOG.debug("Appcache Enabled"); out.println("<html manifest=\"" + contextPath + "/" + (StringUtils.isEmpty(getAppcacheFilename()) ? "kme.appcache" : getAppcacheFilename().trim()) + "\">"); } else { LOG.debug("Appcache Disabled"); out.println("<html>"); } out.println("<head>"); out.println("<title>" + getTitle() + "</title>"); out.println( "<link href=\"" + kmeProperties.getProperty("favico.url", "http://www.kuali.org/favicon.ico") + "\" rel=\"icon\" />"); out.println( "<link href=\"" + kmeProperties.getProperty("favico.url", "http://www.kuali.org/favicon.ico") + "\" rel=\"shortcut icon\" />"); out.println("<link rel=\"apple-touch-icon\" href=\"" + contextPath + "/touch-icon-iphone.png\"/>"); out.println("<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"" + contextPath + "/touch-icon-ipad.png\"/>"); out.println("<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"" + contextPath + "/touch-icon-iphone-retina.png\"/>"); out.println("<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"" + contextPath + "/touch-icon-ipad-retina.png\"/>"); out.println("<link href=\"" + contextPath + "/css/jquery.mobile.css\" rel=\"stylesheet\" type=\"text/css\" />"); out.println("<link href=\"" + contextPath + "/css/jquery-mobile-fluid960.css\" rel=\"stylesheet\" type=\"text/css\" />"); out.println("<link href=\"" + contextPath + "/css/kme.css\" rel=\"stylesheet\" type=\"text/css\" />"); out.println("<link href=\"" + contextPath + "/css/institution.css\" rel=\"stylesheet\" type=\"text/css\" />"); addTheme(); // Attach all CSS files for (String cssFile : getCssFilenames()) { out.println("<link href=\"" + contextPath + "/css/" + cssFile + ".css\" rel=\"stylesheet\" type=\"text/css\" />"); } out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.js\"></script>"); out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.cookie.js\"></script>"); out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/ServerDetails.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/custom.js\"></script>"); out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.mobile.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.tmpl.js\"></script>"); out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.validate.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.validate.ready.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.templates.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/jquery.transit.min.js\"></script>"); out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/BrowserDetect.js\"></script>"); if (this.isNative()) { out.println( "<script type=\"text/javascript\" src=\"" + contextPath + "/js/PushConfig.js\"></script>"); } // out.println("<script src=\"http://jsconsole.com/remote.js?2EA94DB3-FD2F-4FF8-B41E-AB2B9A064544\"></script>"); if (isPlatform(Device.TYPE_IOS)) { if (isPhoneGap("1.4.1")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/phonegap-1.4.1.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/ChildBrowser.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/barcodescanner.js\"></script>"); // out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/Connection.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/PushHandler.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/Badge.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/applicationPreferences.js\"></script>"); } else if (isPhoneGap("1.7.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/cordova-1.7.0.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/ChildBrowser.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/barcodescanner.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/ActionSheet.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/Badge.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/LocalNotifications.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/Notifications.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/PrintPlugin.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/1.7.0/applicationPreferences.js\"></script>"); } else if (isPhoneGap("2.2.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/cordova-2.2.0.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/ActionSheet.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/applicationPreferences.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/AudioStreamer.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/Badge.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/barcodescanner.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.2.0/ChildBrowser.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/PushHandler.js\"></script>"); } else if (isPhoneGap("2.3.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.3.0/cordova-2.3.0.js\"></script>"); } else if (isPhoneGap("2.4.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.4.0/cordova-2.4.0.js\"></script>"); } else if (isPhoneGap("2.5.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.5.0/cordova-2.5.0.js\"></script>"); } else if (isPhoneGap("2.6.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.6.0/cordova-2.6.0.js\"></script>"); } else if (isPhoneGap("2.7.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.7.0/cordova-2.7.0.js\"></script>"); } else if (isPhoneGap("2.8.1")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/iOS/2.8.1/cordova.js\"></script>"); } } else if (isPlatform(Device.TYPE_ANDROID)) { if (isPhoneGap("2.2.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/cordova-2.2.0.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/childbrowser.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/barcodescanner.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/statusbarnotification.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/datePickerPlugin.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/applicationPreferences.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/AudioStreamer.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/GCMPlugin.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/2.2.0/CORDOVA_GCM_script.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/PushHandler.js\"></script>"); } else { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/phonegap-" + getPhonegap() + ".js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/childbrowser.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/barcodescanner.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/statusbarnotification.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/C2DMPlugin.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/PG_C2DM_script.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/android/PushHandler.js\"></script>"); } } else if (isPlatform(Device.TYPE_BLACKBERRY)) { if (isPhoneGap("2.2.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/blackberry/2.2.0/cordova-2.2.0.js\"></script>"); out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/blackberry/2.2.0/kme-application.js\"></script>"); } } else if (isPlatform(Device.TYPE_WINDOWS)) { if (isPhoneGap("2.2.0")) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/windowsMobile/2.2.0/cordova-2.2.0.js\"></script>"); } } /* Google Analytics */ String profileId = coreService.findGoogleAnalyticsProfileId().trim(); if (!disableGoogleAnalytics && profileId.length() > 0) { String profileDomain = coreService.getGoogleAnalyticsProfileDomain().trim(); if (coreService.isGoogleUniversalAnalytics() && !profileDomain.isEmpty()) { out.println("<script type=\"text/javascript\">"); out.println("(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){"); out.println("(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),"); out.println("m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)"); out.println("})(window,document,'script','//www.google-analytics.com/analytics.js','ga');"); out.println("ga('create', '" + profileId + "', '" + profileDomain + "'); "); out.println("ga('send', 'pageview');"); out.println("</script>"); } else { out.println("<script type=\"text/javascript\">"); out.println("var _gaq = _gaq || [];"); out.println("_gaq.push(['_setAccount', '" + profileId + "']);"); out.println("_gaq.push(['_trackPageview']);"); out.println("(function() {"); out.println( "var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;"); out.println( "ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';"); out.println( "var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);"); out.println("})();"); out.println("</script>"); } } if (isUsesGoogleMaps()) { if (getMapLocale() != null) { out.println( "<script type=\"text/javascript\" src=\"https://maps.google.com/maps/api/js?sensor=true&language=" + getMapLocale() + "\"></script>"); } else { out.println( "<script type=\"text/javascript\" src=\"https://maps.google.com/maps/api/js?sensor=true\"></script>"); } } // Now add all the javascripts for (String javascript : getJsFilenames()) { out.println("<script type=\"text/javascript\" src=\"" + contextPath + "/js/" + javascript + ".js\"></script>"); } out.println( "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\">"); // out.println("<meta name=\"apple-mobile-web-app-capable\" content=\"yes\" />"); // out.println("<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\" />"); out.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">"); out.println("</head>"); if (getOnBodyLoad() != null) { out.println("<body onload='" + getOnBodyLoad() + "'>"); } else { out.println("<body>"); } out.println("<div data-role=\"page\" id=\"" + getId() + "\">"); LOG.info("----" + jqmHeader); if (getJqmHeader() != null && getJqmHeader().equals("hide")) { LOG.info("---- Hide Header"); out.println("<div data-role=\"header\" style=\"display:none\">"); } else if (getJqmHeader() != null && getJqmHeader().equals("fixed")) { LOG.info("---- Fixed Header"); out.println("<div data-role=\"header\" data-position=\"fixed\">"); } else { LOG.info("---- Show Header"); out.println("<div data-role=\"header\">"); } if (isLoginButton() || getAuthMapper().getLoginURL() != null) { if (user == null || user.isPublicUser()) { msgCatString = ms.getMessage("shared.login", null, "Login", locale); out.println("<a href=\"" + (getLoginButtonURL() != null ? getLoginButtonURL() : (getAuthMapper().getLoginURL() != null ? getAuthMapper().getLoginURL() : contextPath + "/login")) + "\" data-role=\"button\" data-icon=\"lock\">" + msgCatString + "</a>"); } else { msgCatString = ms.getMessage("shared.logout", null, "Logout", locale); out.println("<a href=\"" + (getLogoutButtonURL() != null ? getLogoutButtonURL() : (getAuthMapper().getLogoutURL() != null ? getAuthMapper().getLogoutURL() : contextPath + "/logout")) + "\" data-role=\"button\" data-icon=\"unlock\">" + msgCatString + "</a>"); } } if (isBackButton()) { msgCatString = ms.getMessage("shared.back", null, "Back", locale); // out.println("<a href=\"" + (getBackButtonURL() != null ? getBackButtonURL() : "javascript: history.go(-1)") + "\" class=\"ui-btn-left\" data-icon=\"back\" data-iconpos=\"notext\">" + msgCatString + "</a>"); boolean showButton = true; if (null == this.getPhonegap() || "".equalsIgnoreCase(getPhonegap())) { // showButton = true; } else { if (null != kmeProperties) { StringBuilder builder = new StringBuilder("shim.backbutton."); builder.append(this.getPlatform().toLowerCase()); if (kmeProperties.containsKey(builder.toString()) && "false".equalsIgnoreCase(kmeProperties.getProperty(builder.toString()))) { showButton = false; } } } if (showButton) { out.println("<a href=\"" + ((getBackButtonURL() != null && StringUtils.isNotBlank(getBackButtonURL())) ? getBackButtonURL() : "javascript: history.go(-1)") + "\" class=\"ui-btn-left\" data-icon=\"back\" data-iconpos=\"notext\">" + msgCatString + "</a>"); } } out.println("<h1>" + getTitle() + "</h1>"); if (isPreferencesButton()) { if (null != kmeProperties && "true".equalsIgnoreCase(kmeProperties.getProperty("home.preferences.enabled", "true"))) { msgCatString = ms.getMessage("shared.preferences", null, "Preferences", locale); out.println("<a href=\"" + (getPreferencesButtonURL() != null ? getPreferencesButtonURL() : contextPath + "/preferences") + "\" class=\"ui-btn-right\" data-icon=\"gear\" data-iconpos=\"notext\">" + msgCatString + "</a>"); } } if (isHomeButton()) { msgCatString = ms.getMessage("shared.home", null, "Home", locale); // out.println("<a href=\"" + contextPath + "/home\" class=\"ui-btn-right\" data-icon=\"home\" data-iconpos=\"notext\">" + msgCatString + "</a>"); boolean homeButton = true; if (null == this.getPhonegap() || "".equalsIgnoreCase(getPhonegap())) { // showButton = true; } else { if (null != kmeProperties) { StringBuilder builder = new StringBuilder("shim.homebutton."); builder.append(this.getPlatform().toLowerCase()); if (kmeProperties.containsKey(builder.toString()) && "false".equalsIgnoreCase(kmeProperties.getProperty(builder.toString()))) { homeButton = false; } } } if (homeButton) { out.println("<a href=\"" + contextPath + "/home\" class=\"ui-btn-right\" data-icon=\"home\" data-iconpos=\"notext\">" + msgCatString + "</a>"); } } out.println("</div>"); getJspBody().invoke(out); out.println("</div>"); out.println("</body>"); out.println("</html>"); } catch (Exception e) { LOG.error(e.getMessage(), e); } }