Codota Logo
JspWriter.print
Code IndexAdd Codota to your IDE (free)

How to use
print
method
in
javax.servlet.jsp.JspWriter

Best Java code snippets using javax.servlet.jsp.JspWriter.print (Showing top 20 results out of 1,341)

Refine searchRefine arrow

  • PageContext.getOut
  • Common ways to obtain JspWriter
private void myMethod () {
JspWriter j =
  • Codota IconPageContext pageContext;pageContext.getOut()
  • Codota IconPageContext _jspx_page_context;_jspx_page_context.popBody()
  • Codota IconBodyContent bodyContent;bodyContent.getEnclosingWriter()
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-framework

@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;
}
origin: spring-projects/spring-framework

@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;
}
origin: spring-projects/spring-framework

try {
  this.pageContext.getOut().print(result);
origin: oblac/jodd

  @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());
    }
  }
}
origin: org.springframework/spring-webmvc

@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;
}
origin: org.springframework/spring-webmvc

@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;
}
origin: org.springframework/spring-webmvc

try {
  this.pageContext.getOut().print(result);
origin: apache/hbase

 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                ");
 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() );
 out.write("</td>\n            <td>HBase version and revision</td>\n        </tr>\n        <tr>\n            <td>HBase Compiled</td>\n            <td>");
 out.print( VersionInfo.getDate() );
 out.write(',');
 out.write(' ');
 out.print( VersionInfo.getUser() );
 out.write("</td>\n            <td>When HBase version was compiled and by whom</td>\n        </tr>\n        <tr>\n            <td>Thrift Server Start Time</td>\n            <td>");
 out.print( new Date(startcode) );
 out.write("</td>\n            <td>Date stamp of when this Thrift server was started</td>\n        </tr>\n        <tr>\n            <td>Thrift Impl Type</td>\n            <td>");
 out.print( implType.getOption() );
 out.write("</td>\n            <td>Thrift RPC engine implementation type chosen by this Thrift server</td>\n        </tr>\n        <tr>\n            <td>Compact Protocol</td>\n            <td>");
 out.print( compact );
 out.write("</td>\n            <td>Thrift RPC engine uses compact protocol</td>\n        </tr>\n        <tr>\n            <td>Framed Transport</td>\n            <td>");
 out.print( framed );
 out.write("</td>\n            <td>Thrift RPC engine uses framed transport</td>\n        </tr>\n    </table>\n    </section>\n    </div>\n    <div class=\"row\">\n        <section>\n            <a href=\"http://hbase.apache.org/book.html#_thrift\">Apache HBase Reference Guide chapter on Thrift</a>\n        </section>\n    </div>\n</div>\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</body>\n</html>\n");
} catch (Throwable t) {
origin: oblac/jodd

JspWriter out = pageContext.getOut();
try {
  out.print(HtmlEncoder.text(message));
} catch (IOException ioex) {
origin: apache/hbase

 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.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.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() );
 out.write("</td>\n            <td>HBase version and revision</td>\n        </tr>\n        <tr>\n            <td>HBase Compiled</td>\n            <td>");
 out.print( VersionInfo.getDate() );
 out.write(',');
 out.write(' ');
 out.print( VersionInfo.getUser() );
 out.write("</td>\n            <td>When HBase version was compiled and by whom</td>\n        </tr>\n        <tr>\n            <td>REST Server Start Time</td>\n            <td>");
 out.print( new Date(startcode) );
 out.write("</td>\n            <td>Date stamp of when this REST server was started</td>\n        </tr>\n    </table>\n    </section>\n    </div>\n    <div class=\"row\">\n\n    <section>\n<a href=\"http://hbase.apache.org/book.html#_rest\">Apache HBase documentation about REST</a>\n    </section>\n    </div>\n</div>\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</body>\n</html>\n\n");
} catch (Throwable t) {
origin: apache/hbase

  org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "header.jsp" + "?" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("pageTitle", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${pageTitle}", java.lang.String.class, (PageContext)_jspx_page_context, null), request.getCharacterEncoding()), out, false);
  out.write("\n\n<div class=\"container-fluid content\">\n  <div class=\"row\">\n      <div class=\"page-header\">\n          <h1>");
  out.print( JSONMetricUtil.getCommmand().split(" ")[0] );
  out.write("</h1>\n      </div>\n  </div>\n  <table class=\"table table-striped\" width=\"90%\" >\n    <tr>\n        <th>Started</th>\n        <th>Uptime</th>\n        <th>PID</th>\n        <th>JvmPauseMonitor Count </th>\n        <th>Owner</th>\n    </tr>\n    <tr>\n      <tr>\n        <td>");
  out.print( new Date(runtimeBean.getStartTime()) );
  out.write("</td>\n        <td>");
  out.print( StringUtils.humanTimeDiff(runtimeBean.getUptime()) );
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getProcessPID() );
  out.write("</td>\n        <td>");
  out.print( (long)JSONMetricUtil.getValueFromMBean(rsMetrics, "pauseWarnThresholdExceeded")
    + (long)JSONMetricUtil.getValueFromMBean(rsMetrics, "pauseInfoThresholdExceeded") );
  out.write("</td>\n        <td>");
  out.print( runtimeBean.getSystemProperties().get("user.name") );
  out.write("</td>\n      </tr>\n  </table>\n</div>\n<div class=\"container-fluid content\">\n  <div class=\"row\">\n    <div class=\"page-header\">\n    <h2>Threads</h2>\n    </div>\n    </div>\n  <table class=\"table table-striped\" width=\"90%\" >\n    <tr>\n        <th>ThreadsNew</th>\n        <th>ThreadsRunable</th>\n        <th>ThreadsBlocked</th>\n        <th>ThreadsWaiting</th>\n        <th>ThreadsTimeWaiting</th>\n        <th>ThreadsTerminated</th>\n    </tr>\n    <tr>\n      <tr>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsNew")  );
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsRunnable"));
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsBlocked"));
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsWaiting"));
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsTimedWaiting"));
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsTerminated"));
  out.write("</td>\n      </tr>\n  </table>\n</div>\n<div class=\"container-fluid content\">\n  <div class=\"row\">\n    <div class=\"page-header\">\n    <h2>GC Collectors</h2>\n    </div>\n    </div>\n    ");
if (gcBeans.size() == 2) { 
  out.write("\n<div class=\"tabbable\">\n  <ul class=\"nav nav-pills\">\n    <li class=\"active\">\n      <a href=\"#tab_gc1\" data-toggle=\"tab\">");
origin: apache/hbase

  org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "header.jsp" + "?" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("pageTitle", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${pageTitle}", java.lang.String.class, (PageContext)_jspx_page_context, null), request.getCharacterEncoding()), out, false);
  out.write("\n\n<div class=\"container-fluid content\">\n  <div class=\"row\">\n      <div class=\"page-header\">\n          <h1>");
  out.print( JSONMetricUtil.getCommmand().split(" ")[0] );
  out.write("</h1>\n      </div>\n  </div>\n  <table class=\"table table-striped\" width=\"90%\" >\n    <tr>\n        <th>Started</th>\n        <th>Uptime</th>\n        <th>PID</th>\n        <th>Owner</th>\n    </tr>\n    <tr>\n      <tr>\n        <td>");
  out.print( new Date(runtimeBean.getStartTime()) );
  out.write("</td>\n        <td>");
  out.print( StringUtils.humanTimeDiff(runtimeBean.getUptime()) );
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getProcessPID() );
  out.write("</td>\n        <td>");
  out.print( runtimeBean.getSystemProperties().get("user.name") );
  out.write("</td>\n      </tr>\n  </table>\n</div>\n<div class=\"container-fluid content\">\n  <div class=\"row\">\n    <div class=\"page-header\">\n    <h2>Threads</h2>\n    </div>\n    </div>\n  <table class=\"table table-striped\" width=\"90%\" >\n    <tr>\n        <th>ThreadsNew</th>\n        <th>ThreadsRunable</th>\n        <th>ThreadsBlocked</th>\n        <th>ThreadsWaiting</th>\n        <th>ThreadsTimeWaiting</th>\n        <th>ThreadsTerminated</th>\n    </tr>\n     <tr>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsNew")  );
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsRunnable"));
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsBlocked"));
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsWaiting"));
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsTimedWaiting"));
  out.write("</td>\n        <td>");
  out.print( JSONMetricUtil.getValueFromMBean(jvmMetrics, "ThreadsTerminated"));
  out.write("</td>\n     </tr>\n  </table>\n</div>\n<div class=\"container-fluid content\">\n  <div class=\"row\">\n    <div class=\"page-header\">\n    <h2>GC Collectors</h2>\n    </div>\n    </div>\n    ");
if (gcBeans.size() == 2) { 
  out.write("\n<div class=\"tabbable\">\n  <ul class=\"nav nav-pills\">\n    <li class=\"active\">\n      <a href=\"#tab_gc1\" data-toggle=\"tab\">");
  out.print(collector1.getName() );
  out.write("</a>\n    </li>\n    <li class=\"\">\n      <a href=\"#tab_gc2\" data-toggle=\"tab\">");
  out.print(collector2.getName() );
origin: apache/hbase

for (SnapshotDescription snapshotDesc : snapshots) { 
   out.write("\n    <tr>\n      <td><a href=\"/snapshot.jsp?name=");
   out.print( snapshotDesc.getName() );
   out.write("\">\n        ");
   out.print( snapshotDesc.getName() );
   out.write("</a></td>\n      ");
   out.print( snapshotTable.getNameAsString() );
   out.write("\">\n        ");
   out.print( snapshotTable.getNameAsString() );
   out.write("</a></td>\n      <td>");
   out.print( new Date(snapshotDesc.getCreationTime()) );
   out.write("</td>\n      <td>");
   out.print( StringUtils.humanReadableInt(stats.getSharedStoreFilesSize()) );
   out.write("</td>\n      <td>");
   out.print( StringUtils.humanReadableInt(stats.getMobStoreFilesSize())  );
   out.write("</td>\n      <td>");
   out.print( StringUtils.humanReadableInt(stats.getArchivedStoreFileSize()) );
   out.write("\n        (");
   out.print( StringUtils.humanReadableInt(stats.getNonSharedArchivedStoreFilesSize()) );
   out.write(")</td>\n    </tr>\n    ");
   out.print( snapshots.size() );
   out.write(" snapshot(s) in set.</p>\n    <p>Total Storefile Size: ");
   out.print( StringUtils.humanReadableInt(totalSize) );
   out.write("</p>\n    <p>Total Shared Storefile Size: ");
   out.print( StringUtils.humanReadableInt(totalSharedSize.get()) );
   out.write(",\n       Total Mob Storefile Size: ");
   out.print( StringUtils.humanReadableInt(totalMobSize.get()) );
origin: apache/hbase

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.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            ");
origin: apache/hbase

  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");
if (tables.size() == 0 && errorMessage != null) { 
  out.write("\n  <p> ");
  out.print( errorMessage );
  out.write(" </p>\n  ");
for (TableDescriptor htDesc : tables) { 
  out.write("\n    <tr>\n      <td>\n        <a href=\"/table.jsp?name=");
  out.print( escapeXml(htDesc.getTableName().getNameAsString()) );
  out.write('"');
  out.write('>');
  out.print( escapeXml(
     htDesc.getTableName().getNameAsString()) );
  out.write("\n        </a></td>\n      <td>");
  out.print( htDesc.toString() );
  out.write("\n      </td>\n    </tr>\n    ");
  out.print( tables.size() );
  out.write(" table(s) in set.</p>\n  </table>\n  ");
origin: apache/hbase

  org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "header.jsp" + "?" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("pageTitle", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${pageTitle}", java.lang.String.class, (PageContext)_jspx_page_context, null), request.getCharacterEncoding()), out, false);
  out.write("\n<div class=\"container-fluid content\">\n    <div class=\"row\">\n        <div class=\"page-header\">\n            <h1>Regions in transition</h1>\n        </div>\n    </div>\n    <div class=\"row\">\n        <div class=\"page-header\">\n            <a href=\"/rits.jsp?format=txt&filter=region&table=");
  out.print(table);
  out.write("&state=");
  out.print(state);
  out.write("\" class=\"btn btn-primary\">Regions in text format</a>\n            <a href=\"/rits.jsp?format=txt&filter=procedure&table=");
  out.print(table);
  out.write("&state=");
  out.print(state);
  out.write("\" class=\"btn btn-info\">Procedures in text format</a>\n            <p>regions and procedures in text format can be copied and passed to command-line utils such as hbck2</p>\n        </div>\n    </div>\n\n    ");
if (rit != null && rit.size() > 0) { 
for (RegionStateNode regionStateNode : rit) { 
  out.write("\n            <tr>\n                <td>");
  out.print( regionStateNode.getRegionInfo().getEncodedName() );
  out.write("</td>\n                <td>");
  out.print( regionStateNode.getRegionInfo().getTable() );
  out.write("</td>\n                <td>");
  out.print( regionStateNode.getState() );
  out.write("</td>\n                <td>");
  out.print( regionStateNode.getProcedure().getProcId() );
  out.write("</td>\n                <td>");
  out.print( escapeXml(regionStateNode.getProcedure().getState().toString() + (regionStateNode.getProcedure().isBypass() ? "(Bypassed)" : "")) );
  out.write("</td>\n            </tr>\n            ");
  out.print( rit.size() );
  out.write(" region(s) in transition.</p>\n        </table>\n    ");
} else { 
origin: apache/hive

  out.print( hiveSession.getUserName() );
  out.write("</td>\n        <td>");
  out.print( hiveSession.getIpAddress() );
  out.write("</td>\n        <td>");
  out.print( hiveSession.getOpenOperationCount() );
  out.write("</td>\n        <td>");
  out.print( (currentTime - hiveSession.getCreationTime())/1000 );
  out.write("</td>\n        <td>");
  out.print( (currentTime - hiveSession.getLastAccessTime())/1000 );
  out.write("</td>\n    </tr>\n");
  out.print( sessionCount );
  out.write("</td>\n</tr>\n</table>\n</section>\n\n<section>\n<h2>Open Queries</h2>\n<table class=\"table table-striped\">\n    <tr>\n        <th>User Name</th>\n        <th>Query</th>\n        <th>Execution Engine</th>\n        <th>State</th>\n        <th>Opened Timestamp</th>\n        <th>Opened (s)</th>\n        <th>Latency (s)</th>\n        <th>Drilldown Link</th>\n    </tr>\n    ");
  out.print( operation.getUserName() );
  out.write("</td>\n        <td>");
  out.print( HtmlEncoder.strict(operation.getQueryDisplay() == null ? "Unknown" : operation.getQueryDisplay().getQueryString()) );
  out.write("</td>\n        <td>");
  out.print( operation.getExecutionEngine() );
  out.write("\n        <td>");
  out.print( operation.getState() );
  out.write("</td>\n        <td>");
  out.print( new Date(operation.getBeginTime()) );
  out.write("</td>\n        <td>");
  out.print( operation.getElapsedTime()/1000 );
  out.write("</td>\n        <td>");
  out.print( operation.getRuntime() == null ? "Not finished" : operation.getRuntime()/1000 );
  out.write("</td>\n        ");
String link = "/query_page?operationId=" + operation.getOperationId(); 
origin: apache/hbase

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");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "header.jsp" + "?" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("pageTitle", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("Zookeeper Dump", request.getCharacterEncoding()), out, false);
out.write("\n        <div class=\"container-fluid content\">\n            <div class=\"row inner_header\">\n                <div class=\"page-header\">\n                    <h1>ZooKeeper Dump</h1>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"span12\">\n                    <pre>");
out.print( StringEscapeUtils.escapeHtml4(ZKUtil.dump(watcher).trim()) );
out.write("</pre>\n                </div>\n            </div>\n        </div>\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "footer.jsp", out, false);
origin: apache/hbase

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");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "header.jsp" + "?" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("pageTitle", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${pageTitle}", java.lang.String.class, (PageContext)_jspx_page_context, null), request.getCharacterEncoding()), out, false);
out.write("\n\n  <div class=\"container-fluid content\">\n    <div class=\"row inner_header\">\n        <div class=\"page-header\">\n            <h4>StoreFile: ");
out.print( storeFile );
out.write("</h4>\n        </div>\n    </div>\n    <pre>\n");
String text = byteStream.toString();
out.write("\n     ");
out.print(
 text
);
out.print( e );
out.write("\n   ");
origin: apache/hbase

  org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "header.jsp" + "?" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("pageTitle", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${pageTitle}", java.lang.String.class, (PageContext)_jspx_page_context, null), request.getCharacterEncoding()), out, false);
  out.write("\n\n  <div class=\"container-fluid content\">\n    <div class=\"row inner_header\">\n        <div class=\"page-header\">\n            <h1>Region: ");
  out.print( displayName );
  out.write("</h1>\n        </div>\n    </div>\n\n");
if(region != null) { //
   Collection<? extends StoreFile> storeFiles = store.getStorefiles(); 
  out.write("\n\n       <h3>Column Family: ");
  out.print( cf );
  out.write("</h3>\n\n       <h4>Memstore size (MB): ");
  out.print( (int) (store.getMemStoreSize().getHeapSize() / 1024 / 1024) );
  out.write("</h4>\n\n       <h4>Store Files</h4>\n\n       <table class=\"table table-striped\">\n         <tr>\n           <th>Store File</th>\n           <th>Size (MB)</th>\n           <th>Modification time</th>\n         </tr>\n       ");
 for(StoreFile sf : storeFiles) { 
  out.write("\n         <tr>\n           <td><a href=\"storeFile.jsp?name=");
  out.print( sf.getPath() );
  out.write('"');
  out.write('>');
  out.print( sf.getPath() );
  out.write("</a></td>\n           <td>");
  out.print( (int) (rs.getFileSystem().getLength(sf.getPath()) / 1024 / 1024) );
  out.write("</td>\n           <td>");
  out.print( new Date(sf.getModificationTimeStamp()) );
  out.write("</td>\n         </tr>\n         ");
  out.print( storeFiles.size() );
  out.write(" StoreFile(s) in set.</p>\n         </table>\n   ");
javax.servlet.jspJspWriterprint

Javadoc

Print a character. The character is written to the JspWriter's buffer or, if no buffer is used, directly to the underlying writer.

Popular methods of JspWriter

  • write
  • flush
    Flush the stream. If the stream has saved any characters from the various write() methods in a buffe
  • clearBuffer
  • println
    Print an array of characters and then terminate the line. This method behaves as though it invokes p
  • getBufferSize
  • clear
    Clear the contents of the buffer. If the buffer has been already been flushed then the clear operati
  • append
  • close
    Close the stream, flushing it first. This method needs not be invoked explicitly for the initial Jsp
  • getRemaining
    This method returns the number of unused bytes in the buffer.
  • newLine
    Write a line separator. The line separator string is defined by the system property line.separator,
  • isAutoFlush
    This method indicates whether the JspWriter is autoFlushing.
  • isAutoFlush

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now