@Override public int doEndTag() throws JspException { String url = createUrl(); RequestDataValueProcessor processor = getRequestContext().getRequestDataValueProcessor(); ServletRequest request = this.pageContext.getRequest(); if ((processor != null) && (request instanceof HttpServletRequest)) { url = processor.processUrl((HttpServletRequest) request, url); } if (this.var == null) { // print the url to the writer try { this.pageContext.getOut().print(url); } catch (IOException ex) { throw new JspException(ex); } } else { // store the url as a variable this.pageContext.setAttribute(this.var, url, this.scope); } return EVAL_PAGE; }
public void init(PageContext pageContext){ this.request = (HttpServletRequest)pageContext.getRequest(); this.response = (HttpServletResponse)pageContext.getResponse(); this.session = pageContext.getSession(); this.application = pageContext.getServletContext(); this.out = pageContext.getOut(); } }
null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); out.write('\n'); out.write('\n'); String listenPort = conf.get("hbase.rest.port", "8080"); out.write("\n<!DOCTYPE html>\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <title>HBase REST Server: "); out.print( listenPort ); out.write("</title>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta name=\"description\" content=\"\">\n\n <link href=\"/static/css/bootstrap.min.css\" rel=\"stylesheet\">\n <link href=\"/static/css/bootstrap-theme.min.css\" rel=\"stylesheet\">\n <link href=\"/static/css/hbase.css\" rel=\"stylesheet\">\n </head>\n\n <body>\n <div class=\"navbar navbar-fixed-top navbar-default\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\".navbar-collapse\">\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <a class=\"navbar-brand\" href=\"/rest.jsp\"><img src=\"/static/hbase_logo_small.png\" alt=\"HBase Logo\"/></a>\n </div>\n <div class=\"collapse navbar-collapse\">\n <ul class=\"nav navbar-nav\">\n <li class=\"active\"><a href=\"/rest.jsp\">Home</a></li>\n"); out.write(" <li><a href=\"/logs/\">Local logs</a></li>\n <li><a href=\"/logLevel\">Log Level</a></li>\n <li><a href=\"/jmx\">Metrics Dump</a></li>\n "); out.write("\n </ul>\n </div><!--/.nav-collapse -->\n </div>\n </div>\n\n<div class=\"container-fluid content\">\n <div class=\"row inner_header\">\n <div class=\"page-header\">\n <h1>RESTServer <small>"); out.print( listenPort ); out.write("</small></h1>\n </div>\n </div>\n <div class=\"row\">\n\n <section>\n <h2>Software Attributes</h2>\n <table id=\"attributes_table\" class=\"table table-striped\">\n <tr>\n <th>Attribute Name</th>\n <th>Value</th>\n <th>Description</th>\n </tr>\n <tr>\n <td>HBase Version</td>\n <td>"); out.print( VersionInfo.getVersion() ); out.write(", revision="); out.print( VersionInfo.getRevision() );
@Override public int doEndTag() throws JspException { try { final ASN1InputStream decoder = new ASN1InputStream(value); ASN1Primitive primitive = decoder.readObject(); while (primitive != null && !(primitive instanceof ASN1Null)) { pageContext.getOut().write(doPrimitive(primitive)); primitive = decoder.readObject(); } } catch (Exception ex) { throw new JspException(ex.getMessage()); } return super.doEndTag(); }
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('\n'); out.write('\n'); out.write('\n');
@Override public void doTag() { PageContext pageContext = (PageContext) getJspContext(); URLCoder.Builder builder = URLCoder.build(baseUrl); for (int i = 0; i < attrs.size(); i += 2) { builder.queryParam(attrs.get(i), attrs.get(i + 1)); } if (var == null) { JspWriter out = pageContext.getOut(); try { out.print(builder.get()); } catch (IOException ioex) { // ignore } } else { pageContext.setAttribute(var, builder.get()); } } }
root.put("any", new JspContextModel(pageContext, JspContextModel.ANY_SCOPE)); template.process(root, pageContext.getOut()); } catch (Exception e) { try { pageContext.handlePageException(e); } catch (ServletException e2) { throw new JspException(e2.getMessage()); } catch (IOException e2) { throw new JspException(e2.getMessage());
public int doEndTag() throws javax.servlet.jsp.JspException { try { ApplResources ar = ApplResources.getInstance(pageContext.getServletContext()); ResultCache rc = ResultCache.getInstance( pageContext.getSession(), pageContext.getServletContext(), query); Document doc = rc.getDOM(); // DomBuilder.debug(doc); Transformer transformer = ar.getTransformer(xsltURI, xsltCache); transformer.transform( new DOMSource(doc), new StreamResult(pageContext.getOut())); } catch (Exception e) { e.printStackTrace(); throw new JspException(e); } return EVAL_PAGE; }
@Override public void doTag() throws JspException, IOException { PageContext pageContext = (PageContext) getJspContext(); JspWriter out = pageContext.getOut(); ServletContext servletContext = pageContext.getServletContext(); injectDependencies(servletContext); String contextPath = servletContext.getContextPath(); out.print(String.format("<script src='%s/app-resources/%s/global.js'></script>", contextPath, version.getVersion())); out.print(String.format("<script src='%s/app-resources/%s/session.js'></script>", contextPath, version.getVersion())); } }
null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); out.write("\n\n<!DOCTYPE html>\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta charset=\"utf-8\">\n <title>"); out.print( request.getParameter("pageTitle")); out.write("</title>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta name=\"description\" content=\"\">\n <meta name=\"author\" content=\"\">\n\n <link href=\"/static/css/bootstrap.min.css\" rel=\"stylesheet\">\n <link href=\"/static/css/bootstrap-theme.min.css\" rel=\"stylesheet\">\n <link href=\"/static/css/hbase.css\" rel=\"stylesheet\">\n </head>\n <body>\n <div class=\"navbar navbar-fixed-top navbar-default\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\"\n data-target=\".navbar-collapse\">\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <a class=\"navbar-brand\" href=\"/rs-status\">\n <img src=\"/static/hbase_logo_small.png\" alt=\"HBase Logo\"/>\n </a>\n </div>\n <div class=\"collapse navbar-collapse\">\n <ul class=\"nav navbar-nav\">\n <li><a href=\"/rs-status\">Home</a></li>\n"); out.write(" <li><a href=\"/processRS.jsp\">Process Metrics</a></li>\n <li><a href=\"/logs/\">Local Logs</a></li>\n <li><a href=\"/logLevel\">Log Level</a></li>\n <li><a href=\"/dump\">Debug Dump</a></li>\n <li><a href=\"/jmx\">Metrics Dump</a></li>\n "); if (HBaseConfiguration.isShowConfInServlet()) { out.write("\n <li><a href=\"/conf\">HBase Configuration</a></li>\n ");
@Override public int doEndTag() throws JspException { EvaluationContext evaluationContext = (EvaluationContext) this.pageContext.getAttribute(EVALUATION_CONTEXT_PAGE_ATTRIBUTE); if (evaluationContext == null) { evaluationContext = createEvaluationContext(this.pageContext); this.pageContext.setAttribute(EVALUATION_CONTEXT_PAGE_ATTRIBUTE, evaluationContext); } if (this.var != null) { Object result = (this.expression != null ? this.expression.getValue(evaluationContext) : null); this.pageContext.setAttribute(this.var, result, this.scope); } else { try { String result = (this.expression != null ? this.expression.getValue(evaluationContext, String.class) : null); result = ObjectUtils.getDisplayString(result); result = htmlEscape(result); result = (this.javaScriptEscape ? JavaScriptUtils.javaScriptEscape(result) : result); this.pageContext.getOut().print(result); } catch (IOException ex) { throw new JspException(ex); } } return EVAL_PAGE; }
JspWriter out = pageContext.getOut(); out.write(buf.toString()); throw new JspException(ioe.getMessage());
null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); out.write("\n <script src=\"/static/js/jquery.min.js\" type=\"text/javascript\"></script>\n <script src=\"/static/js/bootstrap.min.js\" type=\"text/javascript\"></script>\n <script src=\"/static/js/tab.js\" type=\"text/javascript\"></script>\n <script type=\"text/javascript\">\n $(document).ready(function() {\n $('li.active').removeClass('active');\n $('a[href=\"' + location.pathname + '\"]').closest('li').addClass('active');\n });\n </script>\n </body>\n</html>\n"); } catch (Throwable t) { if (!(t instanceof SkipPageException)){
logger.debug("writing " + pipe + "..."); pipe.write(pageContext.getOut()); throw new JspException(e);
"qdforumerror.jsp", true, 65536, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out;
null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector"); out.write("\n\n\n\n"); String compact = conf.get("hbase.regionserver.thrift.compact", "false"); out.write("\n<!DOCTYPE html>\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <title>HBase Thrift Server: "); out.print( listenPort ); out.write("</title>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta name=\"description\" content=\"\">\n\n <link href=\"/static/css/bootstrap.min.css\" rel=\"stylesheet\">\n <link href=\"/static/css/bootstrap-theme.min.css\" rel=\"stylesheet\">\n <link href=\"/static/css/hbase.css\" rel=\"stylesheet\">\n </head>\n\n <body>\n <div class=\"navbar navbar-fixed-top navbar-default\">\n <div class=\"container-fluid\">\n <div class=\"navbar-header\">\n <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\".navbar-collapse\">\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n <span class=\"icon-bar\"></span>\n </button>\n <a class=\"navbar-brand\" href=\"/thrift.jsp\"><img src=\"/static/hbase_logo_small.png\" alt=\"HBase Logo\"/></a>\n </div>\n <div class=\"collapse navbar-collapse\">\n <ul class=\"nav navbar-nav\">\n <li class=\"active\"><a href=\"/\">Home</a></li>\n"); out.write(" <li><a href=\"/logs/\">Local logs</a></li>\n <li><a href=\"/logLevel\">Log Level</a></li>\n <li><a href=\"/jmx\">Metrics Dump</a></li>\n "); if (HBaseConfiguration.isShowConfInServlet()) { out.write("\n </ul>\n </div><!--/.nav-collapse -->\n </div>\n </div>\n\n<div class=\"container-fluid content\">\n <div class=\"row inner_header\">\n <div class=\"page-header\">\n <h1>ThriftServer <small>"); out.print( listenPort ); out.write("</small></h1>\n </div>\n </div>\n <div class=\"row\">\n\n <section>\n <h2>Software Attributes</h2>\n <table id=\"attributes_table\" class=\"table table-striped\">\n <tr>\n <th>Attribute Name</th>\n <th>Value</th>\n <th>Description</th>\n </tr>\n <tr>\n <td>HBase Version</td>\n <td>"); out.print( VersionInfo.getVersion() ); out.write(", r"); out.print( VersionInfo.getRevision() );
throw new JspException("TransformTag can only be used within EditorAwareTag (e.g. BindTag)"); try { this.pageContext.getOut().print(result); throw new JspException(ex);