Example usage for javax.servlet.jsp JspWriter write

List of usage examples for javax.servlet.jsp JspWriter write

Introduction

In this page you can find the example usage for javax.servlet.jsp JspWriter write.

Prototype

public void write(int c) throws IOException 

Source Link

Document

Writes a single character.

Usage

From source file:com.alibaba.jstorm.ui.tags.CpuTag.java

@Override
public void doTag() throws JspException {
    JspWriter out = getJspContext().getOut();
    try {//from  w  w w. j  a  va2  s.  c  om
        if (!StringUtils.isBlank(ratio)) {
            double value = JStormUtils.parseDouble(ratio);
            double danger_threshold = workers * 100;
            double warn_threshold = danger_threshold * THRESHOLD;
            String status_success = "success";
            String status_warning = "warning";
            String status_danger = "danger";

            StringBuilder sb = new StringBuilder();
            sb.append("<div class='progress cpu-ratio-bar'>");
            if (Double.compare(value, warn_threshold) <= 0) {
                double width = value / danger_threshold * 100;
                appendBar(sb, width, value, status_success);
            } else if (Double.compare(value, danger_threshold) <= 0) {
                double width1 = THRESHOLD * 100;
                double width2 = (value - warn_threshold) / danger_threshold * 100;
                appendBar(sb, width1, value, status_success);
                appendBar(sb, width2, value, status_warning);
            } else {
                double width1 = danger_threshold / value * 100;
                double width2 = 100 - width1;
                appendBar(sb, width1, value, status_success);
                appendBar(sb, width2, value, status_danger);
            }
            sb.append("</div>");
            out.write(sb.toString());
        }

    } catch (IOException e) {
        throw new JspException("Error: " + e.getMessage());
    }
}

From source file:net.duckling.ddl.web.tag.LinkTag.java

public int doEndTag() {
    try {/*from  w  w w. ja  v  a  2  s.c  o m*/
        if (!mOverrideAbsolute) {
            VWBContainer container = vwbcontext.getContainer();
            mAbsolute = "absolute".equals(container.getProperty(KeyConstants.PREF_REFER_STYLE));
        }

        JspWriter out = pageContext.getOut();
        String url = figureOutURL();
        url = chooseURLScheme(url);
        StringBuffer sb = new StringBuffer(20);

        sb.append((mClass != null) ? "class=\"" + mClass + "\" " : "");
        sb.append((mStyle != null) ? "style=\"" + mStyle + "\" " : "");
        sb.append((mTarget != null) ? "target=\"" + mTarget + "\" " : "");
        sb.append((mTitle != null) ? "title=\"" + mTitle + "\" " : "");
        sb.append((mRel != null) ? "rel=\"" + mRel + "\" " : "");
        sb.append((mAccesskey != null) ? "accesskey=\"" + mAccesskey + "\" " : "");

        switch (m_format) {
        case URL:
            out.print(url);
            break;
        default:
        case ANCHOR:
            out.print("<a " + sb.toString() + " href=\"" + url + "\">");
            break;
        }

        // Add any explicit body content. This is not the intended use
        // of LinkTag, but happens to be the way it has worked previously.
        if (mBodyContent != null) {
            String linktext = mBodyContent.getString().trim();
            out.write(linktext);
        }

        // Finish off by closing opened anchor
        if (m_format == ANCHOR) {
            out.print("</a>");
        }
    } catch (Exception e) {
        // Yes, we want to catch all exceptions here, including
        // RuntimeExceptions
        LOG.error("Tag failed", e);
    }

    return EVAL_PAGE;
}

From source file:org.apache.jsp.WEB_002dINF.pages.includes.topmenu_jsp.java

public void _jspService(final javax.servlet.http.HttpServletRequest request,
        final javax.servlet.http.HttpServletResponse response)
        throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

    try {//www  .  jav  a 2s  .c  om
        response.setContentType("text/html");
        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("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
            return;
    } catch (java.lang.Throwable t) {
        if (!(t instanceof javax.servlet.jsp.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);
            else
                throw new ServletException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.WEB_002dINF.pages.includes.topmenu_jsp.java

private boolean _jspx_meth_sec_005fauthorize_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f4,
        javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  sec:authorize
    org.springframework.security.taglibs.authz.JspAuthorizeTag _jspx_th_sec_005fauthorize_005f0 = (org.springframework.security.taglibs.authz.JspAuthorizeTag) _005fjspx_005ftagPool_005fsec_005fauthorize_0026_005fifAnyGranted
            .get(org.springframework.security.taglibs.authz.JspAuthorizeTag.class);
    _jspx_th_sec_005fauthorize_005f0.setPageContext(_jspx_page_context);
    _jspx_th_sec_005fauthorize_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f4);
    // /WEB-INF/pages/includes/topmenu.jsp(122,12) name = ifAnyGranted type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_sec_005fauthorize_005f0.setIfAnyGranted("ROLE_USER");
    int _jspx_eval_sec_005fauthorize_005f0 = _jspx_th_sec_005fauthorize_005f0.doStartTag();
    if (_jspx_eval_sec_005fauthorize_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        out.write("\n");
        out.write("            <ul class=\"nav pull-right\">\n");
        out.write("                <li>\n");
        out.write("                    <a href=\"/pamelaChu/account/#/profile\">\n");
        out.write("                        <span>\n");
        out.write("                            <span class=\"glyphicon glyphicon-user\"></span>\n");
        out.write("                            <span class=\"hidden-tablet\">\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f15(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </span>\n");
        out.write("                        </span>\n");
        out.write("                    </a>\n");
        out.write("                </li>\n");
        out.write("                <li class=\"dropdown pointer\">\n");
        out.write("                    <a class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n");
        out.write("                    <span>\n");
        out.write("                        <span class=\"glyphicon glyphicon-th-list\"></span>\n");
        out.write("                        <span class=\"hidden-tablet\">\n");
        out.write("                            ");
        if (_jspx_meth_fmt_005fmessage_005f16(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                        </span>\n");
        out.write("                        <b class=\"caret\"></b>\n");
        out.write("                    </span>\n");
        out.write("                    </a>\n");
        out.write("                    <ul class=\"dropdown-menu\">\n");
        out.write("                        <!-- <li>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/profile\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-user\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f17(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li>\n");
        out.write("                        <li>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/preferences\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-picture\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f18(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li> -->\n");
        out.write("                        <li>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/password\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-lock\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f19(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li>\n");
        out.write("                        <li class=\"divider\"></li>\n");
        out.write("                        <li>\n");
        out.write("                            <!-- <a href=\"/pamelaChu/account/#/files\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-file\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f20(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a> -->\n");
        out.write("                            <a href=\"/pamelaChu/account/#/users\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-globe\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f21(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/groups\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-th-large\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f22(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/tags\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-tags\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f23(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li>\n");
        out.write("                        <!-- <li class=\"divider\"></li>\n");
        out.write("                        <li>\n");
        out.write("                            <a href=\"/pamelaChu/account/#/status_of_the_day\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-signal\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f24(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                            <a href=\"/pamelaChu/home#company\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-briefcase\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f25(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li> -->\n");
        out.write("                        <li class=\"divider\"></li>\n");
        out.write("                        <li>\n");
        out.write("                            <a href=\"/pamelaChu/logout\">\n");
        out.write("                                <span class=\"glyphicon glyphicon-off\"></span>\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f26(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </a>\n");
        out.write("                        </li>\n");
        out.write("                    </ul>\n");
        out.write("                </li>\n");
        out.write("                <li class=\"hidden-phone\">\n");
        out.write("                    <button id=\"editTatam\" class=\"editTatam btn btn-pub btn-blue\">\n");
        out.write("                        <i class=\"glyphicon glyphicon-pencil\"></i>\n");
        out.write("                        <span class=\"visible-desktop\">\n");
        out.write("                            ");
        if (_jspx_meth_fmt_005fmessage_005f27(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                        </span>\n");
        out.write("                    </button>\n");
        out.write("                </li>\n");
        out.write("            </ul>\n");
        out.write("            <!--<ul class=\"nav pull-right\">\n");
        out.write("                <li>\n");
        out.write("                    <a href=\"#\" id=\"help-tour\">\n");
        out.write("                        <span>\n");
        out.write("                            <span class=\"glyphicon glyphicon-question-sign\"></span>\n");
        out.write("                            <span class=\"hidden-tablet\">\n");
        out.write("                                ");
        if (_jspx_meth_fmt_005fmessage_005f28(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\n");
        out.write("                            </span>\n");
        out.write("                        </span>\n");
        out.write("                    </a>\n");
        out.write("                </li>\n");
        out.write("            </ul> -->\n");
        out.write(/* www. ja  v a  2  s  .c  om*/
                "            <form id=\"searchform\" class=\"navbar-form pull-right col-span-4\" action=\"\">\n");
        out.write(
                "                <input name=\"search\" type=\"text\" class=\"col-span-12\" id=\"searchinput\" placeholder=\"");
        if (_jspx_meth_fmt_005fmessage_005f29(_jspx_th_sec_005fauthorize_005f0, _jspx_page_context))
            return true;
        out.write("\" autocomplete=\"off\">\n");
        out.write(
                "                <span class=\"deleteicon\"><i class=\"glyphicon glyphicon-remove-sign\"></i></span>\n");
        out.write("            </form>\n");
        out.write("            ");
    }
    if (_jspx_th_sec_005fauthorize_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fsec_005fauthorize_0026_005fifAnyGranted
                .reuse(_jspx_th_sec_005fauthorize_005f0);
        return true;
    }
    _005fjspx_005ftagPool_005fsec_005fauthorize_0026_005fifAnyGranted.reuse(_jspx_th_sec_005fauthorize_005f0);
    return false;
}

From source file:org.apache.jsp.WEB_002dINF.pages.includes.topmenu_jsp.java

private boolean _jspx_meth_c_005fif_005f2(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f0,
        javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if//  www . ja v  a  2  s  . co  m
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f2 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest
            .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f2.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f0);
    // /WEB-INF/pages/includes/topmenu.jsp(24,20) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f2.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl
            .proprietaryEvaluate("${currentPage != null && currentPage == 'home'}", java.lang.Boolean.class,
                    (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f2 = _jspx_th_c_005fif_005f2.doStartTag();
    if (_jspx_eval_c_005fif_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
            out.write("\n");
            out.write("                      <a href=\"#/home/timeline\">\n");
            out.write("                    ");
            int evalDoAfterBody = _jspx_th_c_005fif_005f2.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
    }
    if (_jspx_th_c_005fif_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
        return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
    return false;
}

From source file:org.apache.jsp.WEB_002dINF.pages.includes.topmenu_jsp.java

private boolean _jspx_meth_c_005fif_005f3(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f0,
        javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if//from w  w  w . ja  v  a2  s.  c  o m
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f3 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest
            .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f3.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f3.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f0);
    // /WEB-INF/pages/includes/topmenu.jsp(27,20) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f3.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl
            .proprietaryEvaluate("${currentPage == null || currentPage != 'home'}", java.lang.Boolean.class,
                    (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f3 = _jspx_th_c_005fif_005f3.doStartTag();
    if (_jspx_eval_c_005fif_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
            out.write("\n");
            out.write("                      <a href=\"/pamelaChu/home/timeline\">\n");
            out.write("                    ");
            int evalDoAfterBody = _jspx_th_c_005fif_005f3.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
    }
    if (_jspx_th_c_005fif_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
        return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
    return false;
}

From source file:org.apache.jsp.WEB_002dINF.pages.includes.topmenu_jsp.java

private boolean _jspx_meth_c_005fif_005f1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f0,
        javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if/*www . ja v  a2 s . c o  m*/
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest
            .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f0);
    // /WEB-INF/pages/includes/topmenu.jsp(16,4) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl
            .proprietaryEvaluate("${currentPage != null && currentPage == 'home'}", java.lang.Boolean.class,
                    (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag();
    if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
            out.write("\n");
            out.write(
                    "        <button type=\"button\" class=\"editTatam btn btn-blue navbar-toggle navbar-edit\">\n");
            out.write("            <i class=\"close glyphicon glyphicon-pencil\"></i>\n");
            out.write("        </button>\n");
            out.write("    ");
            int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
    }
    if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
        return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
    return false;
}

From source file:org.apache.jsp.WEB_002dINF.pages.includes.topmenu_jsp.java

private boolean _jspx_meth_c_005fif_005f4(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f0,
        javax.servlet.jsp.PageContext _jspx_page_context) throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if/*from   w w  w.j a  va  2  s. co m*/
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f4 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest
            .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f4.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f4.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f0);
    // /WEB-INF/pages/includes/topmenu.jsp(121,12) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f4.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl
            .proprietaryEvaluate("${currentPage != null && currentPage == 'home'}", java.lang.Boolean.class,
                    (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f4 = _jspx_th_c_005fif_005f4.doStartTag();
    if (_jspx_eval_c_005fif_005f4 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
            out.write("\n");
            out.write("            ");
            if (_jspx_meth_sec_005fauthorize_005f0(_jspx_th_c_005fif_005f4, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("            ");
            int evalDoAfterBody = _jspx_th_c_005fif_005f4.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
    }
    if (_jspx_th_c_005fif_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4);
        return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4);
    return false;
}

From source file:org.apache.jsp.WEB_002dINF.pages.includes.topmenu_jsp.java

private boolean _jspx_meth_c_005fif_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
        throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if//from  w w w .  j av a2s  .c  om
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest
            .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f0.setParent(null);
    // /WEB-INF/pages/includes/topmenu.jsp(5,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl
            .proprietaryEvaluate("${ios == null || !ios}", java.lang.Boolean.class,
                    (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
    if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
            out.write("\n");
            out.write("    <div id=\"navbar\" class=\"navbar noRadius\">\n");
            out.write(
                    "        <button type=\"button\" class=\"btn-blue navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\".navbar-responsive-collapse\">\n");
            out.write("            <span class=\"icon-bar\"></span>\n");
            out.write("            <span class=\"icon-bar\"></span>\n");
            out.write("            <span class=\"icon-bar\"></span>\n");
            out.write("        </button>\n");
            out.write("        <a class=\"navbar-brand\" href=\"/pamelaChu/home\">\n");
            out.write("            <img src=\"/img/company-logo.png\" alt=\"");
            if (_jspx_meth_fmt_005fmessage_005f0(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\">\n");
            out.write("            ");
            if (_jspx_meth_fmt_005fmessage_005f1(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("        </a>\n");
            out.write("    ");
            if (_jspx_meth_c_005fif_005f1(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("        <div class=\"nav-collapse navbar-responsive-collapse collapse\">\n");
            out.write("            <ul class=\"nav\">\n");
            out.write("                <li>\n");
            out.write("                    ");
            if (_jspx_meth_c_005fif_005f2(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                    ");
            if (_jspx_meth_c_005fif_005f3(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                        <span>\n");
            out.write("                            <span class=\"glyphicon glyphicon-home\"></span>\n");
            out.write("                            <span class=\"hidden-tablet\">\n");
            out.write("                                ");
            if (_jspx_meth_fmt_005fmessage_005f2(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                            </span>\n");
            out.write("                        </span>\n");
            out.write("                    </a>\n");
            out.write("                </li>\n");
            out.write("                <!-- <li class=\"dropdown pointer\">\n");
            out.write("                    <a class=\"dropdown-toggle\" data-toggle=\"dropdown\">\n");
            out.write("                    <span>\n");
            out.write("                        <span class=\"glyphicon glyphicon-info-sign\"></span>\n");
            out.write("                        <span class=\"hidden-tablet\">\n");
            out.write("                            ");
            if (_jspx_meth_fmt_005fmessage_005f3(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                        </span>\n");
            out.write("                        <b class=\"caret\"></b>\n");
            out.write("                    </span>\n");
            out.write("                    </a>\n");
            out.write("                    <ul class=\"dropdown-menu closed\">\n");
            out.write("                        <li>\n");
            out.write("                            <a href=\"/pamelaChu/presentation\">\n");
            out.write("                                <span class=\"glyphicon glyphicon-eye-open\"></span>\n");
            out.write("                                ");
            if (_jspx_meth_fmt_005fmessage_005f4(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                            </a>\n");
            out.write("                        </li>\n");
            out.write("                        <li>\n");
            out.write("                            <a href=\"/pamelaChu/tos\">\n");
            out.write(
                    "                                <span class=\"glyphicon glyphicon-briefcase\"></span>\n");
            out.write("                                ");
            if (_jspx_meth_fmt_005fmessage_005f5(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                            </a>\n");
            out.write("                        </li>\n");
            out.write("                        <li class=\"dropdown-submenu\">\n");
            out.write("                            <a>\n");
            out.write("                                <span class=\"glyphicon glyphicon-flag\"></span>\n");
            out.write("                                ");
            if (_jspx_meth_fmt_005fmessage_005f6(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                            </a>\n");
            out.write("                            <ul class=\"dropdown-menu\">\n");
            out.write("                                <li>\n");
            out.write("                                    <a href=\"?language=en\">\n");
            out.write("                                        ");
            if (_jspx_meth_fmt_005fmessage_005f7(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                                    </a>\n");
            out.write("                                </li>\n");
            out.write("                                <li>\n");
            out.write("                                    <a href=\"?language=fr\">\n");
            out.write("                                        ");
            if (_jspx_meth_fmt_005fmessage_005f8(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                                    </a>\n");
            out.write("                                </li>\n");
            out.write("                            </ul>\n");
            out.write("                        </li>\n");
            out.write("                        <li class=\"divider\"></li>\n");
            out.write("                        <li>\n");
            out.write("                            <a href=\"/pamelaChu/license\">\n");
            out.write(
                    "                                <span class=\"glyphicon glyphicon-info-sign\"></span>\n");
            out.write("                                ");
            if (_jspx_meth_fmt_005fmessage_005f9(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                            </a>\n");
            out.write("                        </li>\n");
            out.write("                        <li>\n");
            out.write(
                    "                            <a href=\"https://github.com/ippontech/pamelaChu/issues\" target=\"_blank\">\n");
            out.write("                                <span class=\"glyphicon glyphicon-inbox\"></span>\n");
            out.write("                                ");
            if (_jspx_meth_fmt_005fmessage_005f10(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                            </a>\n");
            out.write("                        </li>\n");
            out.write("                        <li>\n");
            out.write(
                    "                            <a href=\"https://github.com/ippontech/pamelaChu\" target=\"_blank\">\n");
            out.write("                                <span class=\"glyphicon glyphicon-wrench\"></span>\n");
            out.write("                                ");
            if (_jspx_meth_fmt_005fmessage_005f11(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                            </a>\n");
            out.write("                        </li>\n");
            out.write("                        <li class=\"divider\"></li>\n");
            out.write("                        <li>\n");
            out.write("                            <a href=\"http://www.ippon.fr/\" target=\"_blank\">\n");
            out.write(
                    "                                <span class=\"glyphicon glyphicon-exclamation-sign\"></span>\n");
            out.write("                                ");
            if (_jspx_meth_fmt_005fmessage_005f12(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                            </a>\n");
            out.write("                        </li>\n");
            out.write("                        <li>\n");
            out.write("                            <a href=\"http://blog.ippon.fr/\" target=\"_blank\">\n");
            out.write("                                <span class=\"glyphicon glyphicon-pencil\"></span>\n");
            out.write("                                ");
            if (_jspx_meth_fmt_005fmessage_005f13(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                            </a>\n");
            out.write("                        </li>\n");
            out.write("                        <li>\n");
            out.write(
                    "                            <a href=\"https://twitter.com/ippontech\" target=\"_blank\">\n");
            out.write("                                <span class=\"glyphicon glyphicon-bullhorn\"></span>\n");
            out.write("                                ");
            if (_jspx_meth_fmt_005fmessage_005f14(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                            </a>\n");
            out.write("                        </li>\n");
            out.write("                    </ul>\n");
            out.write("                </li> -->\n");
            out.write("            </ul>\n");
            out.write("\n");
            out.write("            ");
            if (_jspx_meth_c_005fif_005f4(_jspx_th_c_005fif_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("        </div>\n");
            out.write("    </div>\n");
            int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
    }
    if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
        return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
    return false;
}