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:org.apache.jsp.decorators.general_002dbody_002dpre_jsp.java

private boolean _jspx_meth_aui_005fparam_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_aui_005fcomponent_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();
    //  aui:param
    webwork.view.taglib.ParamTag _jspx_th_aui_005fparam_005f0 = (webwork.view.taglib.ParamTag) _005fjspx_005ftagPool_005faui_005fparam_0026_005fname
            .get(webwork.view.taglib.ParamTag.class);
    _jspx_th_aui_005fparam_005f0.setPageContext(_jspx_page_context);
    _jspx_th_aui_005fparam_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcomponent_005f0);
    // /includes/decorators/unsupported-browsers.jsp(11,4) name = name type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_aui_005fparam_005f0.setName("'messageType'");
    int _jspx_eval_aui_005fparam_005f0 = _jspx_th_aui_005fparam_005f0.doStartTag();
    if (_jspx_eval_aui_005fparam_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_aui_005fparam_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.pushBody();
            _jspx_th_aui_005fparam_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
            _jspx_th_aui_005fparam_005f0.doInitBody();
        }//from   ww  w.j a  v  a  2  s  .com
        do {
            out.write("error");
            int evalDoAfterBody = _jspx_th_aui_005fparam_005f0.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
        if (_jspx_eval_aui_005fparam_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.popBody();
        }
    }
    if (_jspx_th_aui_005fparam_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005faui_005fparam_0026_005fname.reuse(_jspx_th_aui_005fparam_005f0);
        return true;
    }
    _005fjspx_005ftagPool_005faui_005fparam_0026_005fname.reuse(_jspx_th_aui_005fparam_005f0);
    return false;
}

From source file:org.apache.jsp.decorators.general_002dbody_002dpre_jsp.java

private boolean _jspx_meth_aui_005fparam_005f1(javax.servlet.jsp.tagext.JspTag _jspx_th_aui_005fcomponent_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();
    //  aui:param
    webwork.view.taglib.ParamTag _jspx_th_aui_005fparam_005f1 = (webwork.view.taglib.ParamTag) _005fjspx_005ftagPool_005faui_005fparam_0026_005fname
            .get(webwork.view.taglib.ParamTag.class);
    _jspx_th_aui_005fparam_005f1.setPageContext(_jspx_page_context);
    _jspx_th_aui_005fparam_005f1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcomponent_005f0);
    // /includes/decorators/unsupported-browsers.jsp(12,4) name = name type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_aui_005fparam_005f1.setName("'cssClass'");
    int _jspx_eval_aui_005fparam_005f1 = _jspx_th_aui_005fparam_005f1.doStartTag();
    if (_jspx_eval_aui_005fparam_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_aui_005fparam_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.pushBody();
            _jspx_th_aui_005fparam_005f1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
            _jspx_th_aui_005fparam_005f1.doInitBody();
        }// ww  w. ja  va 2  s  .c  om
        do {
            out.write("closeable");
            int evalDoAfterBody = _jspx_th_aui_005fparam_005f1.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
        if (_jspx_eval_aui_005fparam_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.popBody();
        }
    }
    if (_jspx_th_aui_005fparam_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005faui_005fparam_0026_005fname.reuse(_jspx_th_aui_005fparam_005f1);
        return true;
    }
    _005fjspx_005ftagPool_005faui_005fparam_0026_005fname.reuse(_jspx_th_aui_005fparam_005f1);
    return false;
}

From source file:org.apache.jsp.decorators.general_002dbody_002dpre_jsp.java

private boolean _jspx_meth_aui_005fparam_005f2(javax.servlet.jsp.tagext.JspTag _jspx_th_aui_005fcomponent_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();
    //  aui:param
    webwork.view.taglib.ParamTag _jspx_th_aui_005fparam_005f2 = (webwork.view.taglib.ParamTag) _005fjspx_005ftagPool_005faui_005fparam_0026_005fname
            .get(webwork.view.taglib.ParamTag.class);
    _jspx_th_aui_005fparam_005f2.setPageContext(_jspx_page_context);
    _jspx_th_aui_005fparam_005f2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcomponent_005f0);
    // /includes/decorators/unsupported-browsers.jsp(13,4) name = name type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_aui_005fparam_005f2.setName("'messageHtml'");
    int _jspx_eval_aui_005fparam_005f2 = _jspx_th_aui_005fparam_005f2.doStartTag();
    if (_jspx_eval_aui_005fparam_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_aui_005fparam_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.pushBody();
            _jspx_th_aui_005fparam_005f2.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
            _jspx_th_aui_005fparam_005f2.doInitBody();
        }/*  ww  w .  j  a  v  a2 s  . c o m*/
        do {
            out.write("\n");
            out.write("        <p>\n");
            out.write("            ");
            if (_jspx_meth_ww_005ftext_005f2(_jspx_th_aui_005fparam_005f2, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("        </p>\n");
            out.write("    ");
            int evalDoAfterBody = _jspx_th_aui_005fparam_005f2.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
        if (_jspx_eval_aui_005fparam_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.popBody();
        }
    }
    if (_jspx_th_aui_005fparam_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005faui_005fparam_0026_005fname.reuse(_jspx_th_aui_005fparam_005f2);
        return true;
    }
    _005fjspx_005ftagPool_005faui_005fparam_0026_005fname.reuse(_jspx_th_aui_005fparam_005f2);
    return false;
}

From source file:org.apache.jsp.decorators.general_002dbody_002dpre_jsp.java

private boolean _jspx_meth_ww_005ftext_005f2(javax.servlet.jsp.tagext.JspTag _jspx_th_aui_005fparam_005f2,
        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();
    //  ww:text/*  w  w  w. j a  v a2s  .  c  om*/
    com.atlassian.jira.web.tags.TextTag _jspx_th_ww_005ftext_005f2 = (com.atlassian.jira.web.tags.TextTag) _005fjspx_005ftagPool_005fww_005ftext_0026_005fname
            .get(com.atlassian.jira.web.tags.TextTag.class);
    _jspx_th_ww_005ftext_005f2.setPageContext(_jspx_page_context);
    _jspx_th_ww_005ftext_005f2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fparam_005f2);
    // /includes/decorators/unsupported-browsers.jsp(15,12) name = name type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_ww_005ftext_005f2.setName("@messageKey");
    int _jspx_eval_ww_005ftext_005f2 = _jspx_th_ww_005ftext_005f2.doStartTag();
    if (_jspx_eval_ww_005ftext_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_ww_005ftext_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.pushBody();
            _jspx_th_ww_005ftext_005f2.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
            _jspx_th_ww_005ftext_005f2.doInitBody();
        }
        do {
            out.write("\n");
            out.write("                ");
            if (_jspx_meth_ww_005fparam_005f8(_jspx_th_ww_005ftext_005f2, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                ");
            if (_jspx_meth_ww_005fparam_005f9(_jspx_th_ww_005ftext_005f2, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("                ");
            if (_jspx_meth_ww_005fparam_005f10(_jspx_th_ww_005ftext_005f2, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("            ");
            int evalDoAfterBody = _jspx_th_ww_005ftext_005f2.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
        if (_jspx_eval_ww_005ftext_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.popBody();
        }
    }
    if (_jspx_th_ww_005ftext_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fww_005ftext_0026_005fname.reuse(_jspx_th_ww_005ftext_005f2);
        return true;
    }
    _005fjspx_005ftagPool_005fww_005ftext_0026_005fname.reuse(_jspx_th_ww_005ftext_005f2);
    return false;
}

From source file:org.apache.jsp.decorators.general_002dbody_002dpre_jsp.java

private boolean _jspx_meth_ww_005fparam_005f8(javax.servlet.jsp.tagext.JspTag _jspx_th_ww_005ftext_005f2,
        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();
    //  ww:param//from w  ww . jav a 2 s  .c o m
    webwork.view.taglib.ParamTag _jspx_th_ww_005fparam_005f8 = (webwork.view.taglib.ParamTag) _005fjspx_005ftagPool_005fww_005fparam_0026_005fname
            .get(webwork.view.taglib.ParamTag.class);
    _jspx_th_ww_005fparam_005f8.setPageContext(_jspx_page_context);
    _jspx_th_ww_005fparam_005f8.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_ww_005ftext_005f2);
    // /includes/decorators/unsupported-browsers.jsp(16,16) name = name type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_ww_005fparam_005f8.setName("'value0'");
    int _jspx_eval_ww_005fparam_005f8 = _jspx_th_ww_005fparam_005f8.doStartTag();
    if (_jspx_eval_ww_005fparam_005f8 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_ww_005fparam_005f8 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.pushBody();
            _jspx_th_ww_005fparam_005f8.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
            _jspx_th_ww_005fparam_005f8.doInitBody();
        }
        do {
            out.write("<a href='");
            if (_jspx_meth_ww_005fproperty_005f2(_jspx_th_ww_005fparam_005f8, _jspx_page_context))
                return true;
            out.write('\'');
            out.write('>');
            int evalDoAfterBody = _jspx_th_ww_005fparam_005f8.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
        if (_jspx_eval_ww_005fparam_005f8 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.popBody();
        }
    }
    if (_jspx_th_ww_005fparam_005f8.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fww_005fparam_0026_005fname.reuse(_jspx_th_ww_005fparam_005f8);
        return true;
    }
    _005fjspx_005ftagPool_005fww_005fparam_0026_005fname.reuse(_jspx_th_ww_005fparam_005f8);
    return false;
}

From source file:org.apache.jsp.decorators.general_002dbody_002dpre_jsp.java

private boolean _jspx_meth_ww_005fparam_005f10(javax.servlet.jsp.tagext.JspTag _jspx_th_ww_005ftext_005f2,
        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();
    //  ww:param// www  .j  av  a2 s  . c o  m
    webwork.view.taglib.ParamTag _jspx_th_ww_005fparam_005f10 = (webwork.view.taglib.ParamTag) _005fjspx_005ftagPool_005fww_005fparam_0026_005fname
            .get(webwork.view.taglib.ParamTag.class);
    _jspx_th_ww_005fparam_005f10.setPageContext(_jspx_page_context);
    _jspx_th_ww_005fparam_005f10.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_ww_005ftext_005f2);
    // /includes/decorators/unsupported-browsers.jsp(18,16) name = name type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_ww_005fparam_005f10.setName("'value2'");
    int _jspx_eval_ww_005fparam_005f10 = _jspx_th_ww_005fparam_005f10.doStartTag();
    if (_jspx_eval_ww_005fparam_005f10 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_ww_005fparam_005f10 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.pushBody();
            _jspx_th_ww_005fparam_005f10.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
            _jspx_th_ww_005fparam_005f10.doInitBody();
        }
        do {
            out.write("</a>");
            int evalDoAfterBody = _jspx_th_ww_005fparam_005f10.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
        if (_jspx_eval_ww_005fparam_005f10 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.popBody();
        }
    }
    if (_jspx_th_ww_005fparam_005f10.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fww_005fparam_0026_005fname.reuse(_jspx_th_ww_005fparam_005f10);
        return true;
    }
    _005fjspx_005ftagPool_005fww_005fparam_0026_005fname.reuse(_jspx_th_ww_005fparam_005f10);
    return false;
}

From source file:org.apache.jsp.decorators.general_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 {/*from   w w w. j  a  v  a2  s  . c  o  m*/
        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");

        WebResourceManager webResourceManager = ComponentAccessor.getComponent(WebResourceManager.class);
        webResourceManager.requireResourcesForContext("atl.general");
        webResourceManager.requireResourcesForContext("jira.general");

        final FieldsResourceIncluder headFieldResourceIncluder = ComponentAccessor
                .getComponent(FieldsResourceIncluder.class);
        headFieldResourceIncluder.includeFieldResourcesForCurrentUser();

        out.write('\n');
        out.write("\n");
        out.write("<!DOCTYPE html>\n");
        out.write("<html lang=\"");
        out.print(ComponentAccessor.getJiraAuthenticationContext().getI18nHelper().getLocale().getLanguage());
        out.write("\">\n");
        out.write("<head>\n");
        out.write("    ");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  decorator:usePage
        com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag _jspx_th_decorator_005fusePage_005f0 = (com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag) _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                .get(com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag.class);
        _jspx_th_decorator_005fusePage_005f0.setPageContext(_jspx_page_context);
        _jspx_th_decorator_005fusePage_005f0.setParent(null);
        // /includes/decorators/aui-layout/head-common.jsp(8,0) name = id type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_decorator_005fusePage_005f0.setId("originalPage");
        int _jspx_eval_decorator_005fusePage_005f0 = _jspx_th_decorator_005fusePage_005f0.doStartTag();
        if (_jspx_th_decorator_005fusePage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                    .reuse(_jspx_th_decorator_005fusePage_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                .reuse(_jspx_th_decorator_005fusePage_005f0);
        com.opensymphony.module.sitemesh.Page originalPage = null;
        originalPage = (com.opensymphony.module.sitemesh.Page) _jspx_page_context.findAttribute("originalPage");
        out.write('\n');

        //
        // IDEA gives you a warning below because it cant resolve JspWriter.  I don't know why but its harmless
        //
        HeaderFooterRendering headerFooterRendering = getComponent(HeaderFooterRendering.class);

        out.write("\n");
        out.write("<meta charset=\"utf-8\">\n");
        out.write("<meta http-equiv=\"X-UA-Compatible\" content=\"");
        out.print(headerFooterRendering.getXUACompatible(originalPage));
        out.write("\"/>\n");
        out.write("<title>");
        out.print(headerFooterRendering.getPageTitle(originalPage));
        out.write("</title>\n");

        // include version meta information
        headerFooterRendering.includeVersionMetaTags(out);

        headerFooterRendering.includeGoogleSiteVerification(out);

        // writes the <meta> tags into the page head
        headerFooterRendering.requireCommonMetadata();
        headerFooterRendering.includeMetadata(out);

        // include web panels
        headerFooterRendering.includeWebPanels(out, "atl.header");

        out.write('\n');
        out.write('\n');
        out.write('\n');

        XsrfTokenGenerator xsrfTokenGenerator = ComponentAccessor.getComponent(XsrfTokenGenerator.class);

        out.write("    \n");
        out.write("<meta id=\"atlassian-token\" name=\"atlassian-token\" content=\"");
        out.print(xsrfTokenGenerator.generateToken(request));
        out.write("\">\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("<link rel=\"shortcut icon\" href=\"");
        out.print(headerFooterRendering.getRelativeResourcePrefix());
        out.write("/favicon.ico\">\n");
        out.write("<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"");
        out.print(request.getContextPath());
        out.write("/osd.jsp\" title=\"");
        out.print(headerFooterRendering.getPageTitle(originalPage));
        out.write("\"/>\n");
        out.write("\n");
        out.write("    ");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("<!--[if IE]><![endif]-->");
        out.write("\n");
        out.write("<script type=\"text/javascript\">var contextPath = '");
        out.print(request.getContextPath());
        out.write("';</script>\n");

        //
        // IDEA gives you a warning below because it cant resolve JspWriter.  I don't know why but its harmless
        //
        HeaderFooterRendering headerAndFooter = ComponentAccessor.getComponent(HeaderFooterRendering.class);

        headerAndFooter.requireCommonResources();
        headerAndFooter.includeResources(out);

        out.write("\n");
        out.write("<script type=\"text/javascript\" src=\"");
        out.print(headerAndFooter.getKeyboardShortCutScript(request));
        out.write("\"></script>\n");

        headerAndFooter.includeWebPanels(out, "atl.header.after.scripts");

        out.write('\n');
        out.write("\n");
        out.write("    ");
        if (_jspx_meth_decorator_005fhead_005f0(_jspx_page_context))
            return;
        out.write("\n");
        out.write("</head>\n");
        out.write("<body id=\"jira\" class=\"aui-layout aui-theme-default ");
        if (_jspx_meth_decorator_005fgetProperty_005f0(_jspx_page_context))
            return;
        out.write('"');
        out.write(' ');
        out.print(ComponentAccessor.getComponent(ProductVersionDataBeanProvider.class).get()
                .getBodyHtmlAttributes());
        out.write(">\n");
        out.write("<div id=\"page\">\n");
        out.write("    <header id=\"header\" role=\"banner\">\n");
        out.write("        ");
        out.write("\n");
        out.write("    ");
        out.write("\n");
        out.write("        ");
        out.write("\n");
        out.write("            ");
        out.write("\n");
        out.write("        ");
        out.write("\n");
        out.write("    ");
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write("\n");
        out.write("<script>\n");
        out.write("    AJS.$(function () {\n");
        out.write("        var licenseBanner = require(\"jira/license-banner\");\n");
        out.write("        licenseBanner.showLicenseBanner(\"");
        out.print(StringEscapeUtils.escapeEcmaScript(
                ComponentAccessor.getComponentOfType(LicenseBannerHelper.class).getExpiryBanner()));
        out.write("\");\n");
        out.write("        licenseBanner.showLicenseFlag(\"");
        out.print(StringEscapeUtils.escapeEcmaScript(
                ComponentAccessor.getComponentOfType(LicenseBannerHelper.class).getMaintenanceFlag()));
        out.write("\");\n");
        out.write("    });\n");
        out.write("</script>\n");
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write('\n');

        final User loggedInUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
        if (loggedInUser != null) {
            final InternalWebSudoManager websudoManager = ComponentAccessor
                    .getComponent(InternalWebSudoManager.class);

            if (websudoManager.isEnabled() && websudoManager.hasValidSession(session)) {
                request.setAttribute("helpUtil", HelpUtil.getInstance());

                out.write("\n");
                out.write("<div class=\"aui-message aui-message-warning\" id=\"websudo-banner\">\n");

                if (websudoManager.isWebSudoRequest(request)) {

                    out.write("\n");
                    out.write("    <p>\n");
                    out.write("        ");
                    if (_jspx_meth_ww_005ftext_005f0(_jspx_page_context))
                        return;
                    out.write("\n");
                    out.write("    </p>\n");

                } else {

                    out.write("\n");
                    out.write("    <p>\n");
                    out.write("        ");
                    if (_jspx_meth_ww_005ftext_005f1(_jspx_page_context))
                        return;
                    out.write("\n");
                    out.write("    </p>\n");

                }

                out.write("\n");
                out.write("</div>\n");

            }
        }

        out.write('\n');
        out.write('\n');
        out.write("\n");
        out.write("        ");
        out.write('\n');
        if (_jspx_meth_ww_005fbean_005f0(_jspx_page_context))
            return;
        out.write('\n');
        out.write('\n');

        final UnsupportedBrowserManager browserManager = ComponentAccessor
                .getComponent(UnsupportedBrowserManager.class);
        if (browserManager.isCheckEnabled() && !browserManager.isHandledCookiePresent(request)
                && browserManager.isUnsupportedBrowser(request)) {
            request.setAttribute("messageKey", browserManager.getMessageKey(request));

            out.write('\n');
            if (_jspx_meth_aui_005fcomponent_005f0(_jspx_page_context))
                return;
            out.write('\n');
        }
        out.write("\n");
        out.write("        ");
        out.write('\n');
        out.write('\n');
        //  decorator:usePage
        com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag _jspx_th_decorator_005fusePage_005f1 = (com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag) _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                .get(com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag.class);
        _jspx_th_decorator_005fusePage_005f1.setPageContext(_jspx_page_context);
        _jspx_th_decorator_005fusePage_005f1.setParent(null);
        // /includes/decorators/aui-layout/header.jsp(3,0) name = id type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_decorator_005fusePage_005f1.setId("p");
        int _jspx_eval_decorator_005fusePage_005f1 = _jspx_th_decorator_005fusePage_005f1.doStartTag();
        if (_jspx_th_decorator_005fusePage_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                    .reuse(_jspx_th_decorator_005fusePage_005f1);
            return;
        }
        _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                .reuse(_jspx_th_decorator_005fusePage_005f1);
        com.opensymphony.module.sitemesh.Page p = null;
        p = (com.opensymphony.module.sitemesh.Page) _jspx_page_context.findAttribute("p");
        out.write('\n');

        //
        // IDEA gives you a warning below because it cant resolve JspWriter.  I don't know why but its harmless
        //
        ComponentAccessor.getComponent(HeaderFooterRendering.class).includeTopNavigation(out, request, p);

        out.write("\n");
        out.write("    </header>\n");
        out.write("    ");
        out.write('\n');
        out.write('\n');

        AnnouncementBanner banner = ComponentAccessor.getComponentOfType(AnnouncementBanner.class);
        if (banner.isDisplay()) {

            out.write("\n");
            out.write("<div id=\"announcement-banner\" class=\"alertHeader\">\n");
            out.write("    ");
            out.print(banner.getViewHtml());
            out.write("\n");
            out.write("</div>\n");

        }

        out.write('\n');
        out.write("\n");
        out.write("    <section id=\"content\" role=\"main\">\n");
        out.write("        ");
        if (_jspx_meth_decorator_005fbody_005f0(_jspx_page_context))
            return;
        out.write("\n");
        out.write("    </section>\n");
        out.write("    <footer id=\"footer\" role=\"contentinfo\">\n");
        out.write("        ");
        out.write("\n");
        out.write("        ");
        out.write("\n");
        out.write("\n");
        out.write("<section class=\"footer-body\">\n");

        //
        // IDEA gives you a warning below because it cant resolve JspWriter.  I don't know why but its harmless
        //
        HeaderFooterRendering footerRendering = getComponent(HeaderFooterRendering.class);
        footerRendering.includeFooters(out, request);
        // include web panels
        footerRendering.includeWebPanels(out, "atl.footer");

        out.write("\n");
        out.write("    <div id=\"footer-logo\"><a href=\"http://www.atlassian.com/\">Atlassian</a></div>\n");
        out.write("</section>\n");
        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                "/includes/decorators/global-translations.jsp", out, false);
        out.write("\n");
        out.write("    </footer>\n");
        out.write("</div>\n");
        out.write("</body>\n");
        out.write("</html>\n");
    } 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.decorators.panel_002dadmin_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 {/*from   w ww .  j  ava  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");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  decorator:usePage
        com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag _jspx_th_decorator_005fusePage_005f0 = (com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag) _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                .get(com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag.class);
        _jspx_th_decorator_005fusePage_005f0.setPageContext(_jspx_page_context);
        _jspx_th_decorator_005fusePage_005f0.setParent(null);
        // /decorators/panel-admin.jsp(17,0) name = id type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_decorator_005fusePage_005f0.setId("configPage");
        int _jspx_eval_decorator_005fusePage_005f0 = _jspx_th_decorator_005fusePage_005f0.doStartTag();
        if (_jspx_th_decorator_005fusePage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                    .reuse(_jspx_th_decorator_005fusePage_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                .reuse(_jspx_th_decorator_005fusePage_005f0);
        com.opensymphony.module.sitemesh.Page configPage = null;
        configPage = (com.opensymphony.module.sitemesh.Page) _jspx_page_context.findAttribute("configPage");
        out.write('\n');

        {
            final ComponentFactory factory = ComponentAccessor.getComponentOfType(ComponentFactory.class);
            final AdminDecoratorHelper helper = factory.createObject(AdminDecoratorHelper.class);

            helper.setCurrentSection(configPage.getProperty("meta.admin.active.section"));
            helper.setCurrentTab(configPage.getProperty("meta.admin.active.tab"));
            helper.setProject(configPage.getProperty("meta.projectKey"));

            request.setAttribute("adminHelper", helper);
            request.setAttribute("jira.admin.mode", true);
            request.setAttribute("jira.selected.section", helper.getSelectedMenuSection()); // Determine what tab should be active

            // Plugins 2.5 allows us to perform context-based resource inclusion. This defines the context "atl.admin"
            final WebResourceManager adminWebResourceManager = ComponentAccessor.getWebResourceManager();
            adminWebResourceManager.requireResourcesForContext("atl.admin");
            adminWebResourceManager.requireResourcesForContext("jira.admin");

            final KeyboardShortcutManager adminKeyboardShortcutManager = ComponentAccessor
                    .getComponentOfType(KeyboardShortcutManager.class);
            adminKeyboardShortcutManager.requireShortcutsForContext(KeyboardShortcutManager.Context.admin);
        }

        out.write("\n");
        out.write("<!DOCTYPE html>\n");
        out.write("<html>\n");
        out.write("<head>\n");
        out.write("    ");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        //  decorator:usePage
        com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag _jspx_th_decorator_005fusePage_005f1 = (com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag) _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                .get(com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag.class);
        _jspx_th_decorator_005fusePage_005f1.setPageContext(_jspx_page_context);
        _jspx_th_decorator_005fusePage_005f1.setParent(null);
        // /includes/decorators/aui-layout/head-common.jsp(5,0) name = id type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_decorator_005fusePage_005f1.setId("originalPage");
        int _jspx_eval_decorator_005fusePage_005f1 = _jspx_th_decorator_005fusePage_005f1.doStartTag();
        if (_jspx_th_decorator_005fusePage_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                    .reuse(_jspx_th_decorator_005fusePage_005f1);
            return;
        }
        _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                .reuse(_jspx_th_decorator_005fusePage_005f1);
        com.opensymphony.module.sitemesh.Page originalPage = null;
        originalPage = (com.opensymphony.module.sitemesh.Page) _jspx_page_context.findAttribute("originalPage");
        out.write('\n');

        //
        // IDEA gives you a warning below because it cant resolve JspWriter.  I don't know why but its harmless
        //
        HeaderFooterRendering headerFooterRendering = getComponent(HeaderFooterRendering.class);

        out.write("\n");
        out.write("\n");
        out.write("<meta charset=\"utf-8\">\n");
        out.write("\n");
        out.write("<meta http-equiv=\"X-UA-Compatible\" content=\"");
        out.print(headerFooterRendering.getXUACompatible(originalPage));
        out.write("\"/>\n");
        out.write("<title>");
        out.print(headerFooterRendering.getPageTitle(originalPage));
        out.write("</title>\n");

        // include version meta information
        headerFooterRendering.includeVersionMetaTags(out);

        // writes the <meta> tags into the page head
        headerFooterRendering.includeMetadata(out);

        // include web panels
        headerFooterRendering.includeWebPanels(out, "atl.header");

        out.write('\n');
        out.write('\n');
        out.write('\n');

        XsrfTokenGenerator xsrfTokenGenerator = (XsrfTokenGenerator) ComponentManager
                .getComponentInstanceOfType(XsrfTokenGenerator.class);

        out.write("    \n");
        out.write("<meta id=\"atlassian-token\" name=\"atlassian-token\" content=\"");
        out.print(xsrfTokenGenerator.generateToken(request));
        out.write("\">\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("<link rel=\"shortcut icon\" href=\"");
        out.print(headerFooterRendering.getRelativeResourcePrefix());
        out.write("/favicon.ico\">\n");
        out.write("<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"");
        out.print(request.getContextPath());
        out.write("/osd.jsp\" title=\"");
        out.print(headerFooterRendering.getPageTitle(originalPage));
        out.write("\"/>\n");
        out.write("\n");
        out.write("    ");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("<!--[if IE]><![endif]-->");
        out.write("\n");
        out.write("<script type=\"text/javascript\">var contextPath = '");
        out.print(request.getContextPath());
        out.write("';</script>\n");

        //
        // IDEA gives you a warning below because it cant resolve JspWriter.  I don't know why but its harmless
        //
        HeaderFooterRendering headerAndFooter = ComponentAccessor.getComponent(HeaderFooterRendering.class);

        headerAndFooter.includeHeadResources(out);

        out.write("\n");
        out.write("<script type=\"text/javascript\" src=\"");
        out.print(headerAndFooter.getKeyboardShortCutScript(request));
        out.write("\"></script>\n");

        headerAndFooter.includeWebPanels(out, "atl.header.after.scripts");

        out.write('\n');
        out.write("\n");
        out.write("    ");
        if (_jspx_meth_decorator_005fhead_005f0(_jspx_page_context))
            return;
        out.write("\n");
        out.write("</head>\n");
        out.write("<body id=\"jira\" class=\"aui-layout aui-theme-default page-type-admin ");
        if (_jspx_meth_decorator_005fgetProperty_005f0(_jspx_page_context))
            return;
        out.write('"');
        out.write(' ');
        out.print(ComponentAccessor.getComponent(ProductVersionDataBeanProvider.class).get()
                .getBodyHtmlAttributes());
        out.write(">\n");
        out.write("<div id=\"page\">\n");
        out.write("    <header id=\"header\" role=\"banner\">\n");
        out.write("        ");
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write("\n");
        out.write("    ");
        out.write("\n");
        out.write("        ");
        out.write("\n");
        out.write("            ");
        out.write("\n");
        out.write("        ");
        out.write("\n");
        out.write("    ");
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write('\n');
        out.write('\n');

        final User loggedInUser = ComponentManager.getInstance().getJiraAuthenticationContext()
                .getLoggedInUser();
        if (loggedInUser != null) {

            final InternalWebSudoManager websudoManager = ComponentManager
                    .getComponentInstanceOfType(InternalWebSudoManager.class);

            if (websudoManager.isEnabled() && websudoManager.hasValidSession(session)) {
                request.setAttribute("helpUtil", HelpUtil.getInstance());

                out.write("\n");
                out.write("<div class=\"aui-message warning\" id=\"websudo-banner\">\n");

                if (websudoManager.isWebSudoRequest(request)) {

                    out.write("\n");
                    out.write("    <p>\n");
                    out.write("        <span class=\"aui-icon aui-icon-warning\"></span>\n");
                    out.write("        ");
                    if (_jspx_meth_ww_005ftext_005f0(_jspx_page_context))
                        return;
                    out.write("\n");
                    out.write("    </p>\n");

                } else {

                    out.write("\n");
                    out.write("    <p>\n");
                    out.write("        <span class=\"aui-icon aui-icon-warning\"></span>\n");
                    out.write("        ");
                    if (_jspx_meth_ww_005ftext_005f1(_jspx_page_context))
                        return;
                    out.write("\n");
                    out.write("    </p>\n");

                }

                out.write("\n");
                out.write("</div>\n");

            }
        }

        out.write('\n');
        out.write('\n');
        out.write("\n");
        out.write("        ");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");
        out.write("\n");

        ReindexMessageManager reindexMessageManager = ComponentAccessor
                .getComponentOfType(ReindexMessageManager.class);
        JiraAuthenticationContext authenticationContext = ComponentAccessor
                .getComponentOfType(JiraAuthenticationContext.class);
        final boolean isAdmin = ComponentAccessor.getComponentOfType(PermissionManager.class)
                .hasPermission(Permissions.ADMINISTER, authenticationContext.getUser());
        final String message = reindexMessageManager.getMessage(authenticationContext.getLoggedInUser());
        if (isAdmin && !StringUtils.isBlank(message)) {

            out.write('\n');
            //  aui:component
            webwork.view.taglib.ui.ComponentTag _jspx_th_aui_005fcomponent_005f0 = (webwork.view.taglib.ui.ComponentTag) _005fjspx_005ftagPool_005faui_005fcomponent_0026_005ftheme_005ftemplate
                    .get(webwork.view.taglib.ui.ComponentTag.class);
            _jspx_th_aui_005fcomponent_005f0.setPageContext(_jspx_page_context);
            _jspx_th_aui_005fcomponent_005f0.setParent(null);
            // /includes/admin/admin-info-notifications.jsp(17,0) name = template type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
            _jspx_th_aui_005fcomponent_005f0.setTemplate("auimessage.jsp");
            // /includes/admin/admin-info-notifications.jsp(17,0) name = theme type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
            _jspx_th_aui_005fcomponent_005f0.setTheme("'aui'");
            int _jspx_eval_aui_005fcomponent_005f0 = _jspx_th_aui_005fcomponent_005f0.doStartTag();
            if (_jspx_eval_aui_005fcomponent_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                if (_jspx_eval_aui_005fcomponent_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.pushBody();
                    _jspx_th_aui_005fcomponent_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                    _jspx_th_aui_005fcomponent_005f0.doInitBody();
                }
                do {
                    out.write("\n");
                    out.write("    ");
                    if (_jspx_meth_aui_005fparam_005f0(_jspx_th_aui_005fcomponent_005f0, _jspx_page_context))
                        return;
                    out.write("\n");
                    out.write("    ");
                    //  aui:param
                    webwork.view.taglib.ParamTag _jspx_th_aui_005fparam_005f1 = (webwork.view.taglib.ParamTag) _005fjspx_005ftagPool_005faui_005fparam_0026_005fname
                            .get(webwork.view.taglib.ParamTag.class);
                    _jspx_th_aui_005fparam_005f1.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fparam_005f1
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcomponent_005f0);
                    // /includes/admin/admin-info-notifications.jsp(19,4) name = name type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fparam_005f1.setName("'messageHtml'");
                    int _jspx_eval_aui_005fparam_005f1 = _jspx_th_aui_005fparam_005f1.doStartTag();
                    if (_jspx_eval_aui_005fparam_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_aui_005fparam_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_aui_005fparam_005f1
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_aui_005fparam_005f1.doInitBody();
                        }
                        do {
                            out.print(message);
                            int evalDoAfterBody = _jspx_th_aui_005fparam_005f1.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_aui_005fparam_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_aui_005fparam_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fparam_0026_005fname
                                .reuse(_jspx_th_aui_005fparam_005f1);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fparam_0026_005fname.reuse(_jspx_th_aui_005fparam_005f1);
                    out.write('\n');
                    int evalDoAfterBody = _jspx_th_aui_005fcomponent_005f0.doAfterBody();
                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                        break;
                } while (true);
                if (_jspx_eval_aui_005fcomponent_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.popBody();
                }
            }
            if (_jspx_th_aui_005fcomponent_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005faui_005fcomponent_0026_005ftheme_005ftemplate
                        .reuse(_jspx_th_aui_005fcomponent_005f0);
                return;
            }
            _005fjspx_005ftagPool_005faui_005fcomponent_0026_005ftheme_005ftemplate
                    .reuse(_jspx_th_aui_005fcomponent_005f0);
            out.write('\n');

        }

        UserUtil userUtil = ComponentAccessor.getComponentOfType(UserUtil.class);
        if (isAdmin && userUtil.hasExceededUserLimit()) {

            out.write('\n');
            //  aui:component
            webwork.view.taglib.ui.ComponentTag _jspx_th_aui_005fcomponent_005f1 = (webwork.view.taglib.ui.ComponentTag) _005fjspx_005ftagPool_005faui_005fcomponent_0026_005ftheme_005ftemplate_005fid
                    .get(webwork.view.taglib.ui.ComponentTag.class);
            _jspx_th_aui_005fcomponent_005f1.setPageContext(_jspx_page_context);
            _jspx_th_aui_005fcomponent_005f1.setParent(null);
            // /includes/admin/admin-info-notifications.jsp(28,0) name = id type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
            _jspx_th_aui_005fcomponent_005f1.setId("'adminMessages2'");
            // /includes/admin/admin-info-notifications.jsp(28,0) name = template type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
            _jspx_th_aui_005fcomponent_005f1.setTemplate("auimessage.jsp");
            // /includes/admin/admin-info-notifications.jsp(28,0) name = theme type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
            _jspx_th_aui_005fcomponent_005f1.setTheme("'aui'");
            int _jspx_eval_aui_005fcomponent_005f1 = _jspx_th_aui_005fcomponent_005f1.doStartTag();
            if (_jspx_eval_aui_005fcomponent_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                if (_jspx_eval_aui_005fcomponent_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.pushBody();
                    _jspx_th_aui_005fcomponent_005f1.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                    _jspx_th_aui_005fcomponent_005f1.doInitBody();
                }
                do {
                    out.write("\n");
                    out.write("    ");
                    if (_jspx_meth_aui_005fparam_005f2(_jspx_th_aui_005fcomponent_005f1, _jspx_page_context))
                        return;
                    out.write("\n");
                    out.write("    ");
                    //  aui:param
                    webwork.view.taglib.ParamTag _jspx_th_aui_005fparam_005f3 = (webwork.view.taglib.ParamTag) _005fjspx_005ftagPool_005faui_005fparam_0026_005fname
                            .get(webwork.view.taglib.ParamTag.class);
                    _jspx_th_aui_005fparam_005f3.setPageContext(_jspx_page_context);
                    _jspx_th_aui_005fparam_005f3
                            .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fcomponent_005f1);
                    // /includes/admin/admin-info-notifications.jsp(30,4) name = name type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                    _jspx_th_aui_005fparam_005f3.setName("'messageHtml'");
                    int _jspx_eval_aui_005fparam_005f3 = _jspx_th_aui_005fparam_005f3.doStartTag();
                    if (_jspx_eval_aui_005fparam_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                        if (_jspx_eval_aui_005fparam_005f3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.pushBody();
                            _jspx_th_aui_005fparam_005f3
                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                            _jspx_th_aui_005fparam_005f3.doInitBody();
                        }
                        do {
                            out.write("\n");
                            out.write("        ");
                            //  ww:text
                            com.atlassian.jira.web.tags.TextTag _jspx_th_ww_005ftext_005f2 = (com.atlassian.jira.web.tags.TextTag) _005fjspx_005ftagPool_005fww_005ftext_0026_005fname
                                    .get(com.atlassian.jira.web.tags.TextTag.class);
                            _jspx_th_ww_005ftext_005f2.setPageContext(_jspx_page_context);
                            _jspx_th_ww_005ftext_005f2
                                    .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_aui_005fparam_005f3);
                            // /includes/admin/admin-info-notifications.jsp(31,8) name = name type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                            _jspx_th_ww_005ftext_005f2.setName("'admin.globalpermissions.user.limit.warning'");
                            int _jspx_eval_ww_005ftext_005f2 = _jspx_th_ww_005ftext_005f2.doStartTag();
                            if (_jspx_eval_ww_005ftext_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                if (_jspx_eval_ww_005ftext_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                    out = _jspx_page_context.pushBody();
                                    _jspx_th_ww_005ftext_005f2
                                            .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                    _jspx_th_ww_005ftext_005f2.doInitBody();
                                }
                                do {
                                    out.write("\n");
                                    out.write("            ");
                                    //  ww:param
                                    webwork.view.taglib.ParamTag _jspx_th_ww_005fparam_005f8 = (webwork.view.taglib.ParamTag) _005fjspx_005ftagPool_005fww_005fparam_0026_005fname
                                            .get(webwork.view.taglib.ParamTag.class);
                                    _jspx_th_ww_005fparam_005f8.setPageContext(_jspx_page_context);
                                    _jspx_th_ww_005fparam_005f8.setParent(
                                            (javax.servlet.jsp.tagext.Tag) _jspx_th_ww_005ftext_005f2);
                                    // /includes/admin/admin-info-notifications.jsp(32,12) name = name type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
                                    _jspx_th_ww_005fparam_005f8.setName("'value0'");
                                    int _jspx_eval_ww_005fparam_005f8 = _jspx_th_ww_005fparam_005f8
                                            .doStartTag();
                                    if (_jspx_eval_ww_005fparam_005f8 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                                        if (_jspx_eval_ww_005fparam_005f8 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                            out = _jspx_page_context.pushBody();
                                            _jspx_th_ww_005fparam_005f8
                                                    .setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                                            _jspx_th_ww_005fparam_005f8.doInitBody();
                                        }
                                        do {
                                            out.write("<a href=\"");
                                            out.print(request.getContextPath());
                                            out.write("/secure/admin/ViewLicense!default.jspa\">");
                                            int evalDoAfterBody = _jspx_th_ww_005fparam_005f8.doAfterBody();
                                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                                break;
                                        } while (true);
                                        if (_jspx_eval_ww_005fparam_005f8 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                            out = _jspx_page_context.popBody();
                                        }
                                    }
                                    if (_jspx_th_ww_005fparam_005f8
                                            .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                        _005fjspx_005ftagPool_005fww_005fparam_0026_005fname
                                                .reuse(_jspx_th_ww_005fparam_005f8);
                                        return;
                                    }
                                    _005fjspx_005ftagPool_005fww_005fparam_0026_005fname
                                            .reuse(_jspx_th_ww_005fparam_005f8);
                                    out.write("\n");
                                    out.write("            ");
                                    if (_jspx_meth_ww_005fparam_005f9(_jspx_th_ww_005ftext_005f2,
                                            _jspx_page_context))
                                        return;
                                    out.write("\n");
                                    out.write("        ");
                                    int evalDoAfterBody = _jspx_th_ww_005ftext_005f2.doAfterBody();
                                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                        break;
                                } while (true);
                                if (_jspx_eval_ww_005ftext_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                                    out = _jspx_page_context.popBody();
                                }
                            }
                            if (_jspx_th_ww_005ftext_005f2
                                    .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                                _005fjspx_005ftagPool_005fww_005ftext_0026_005fname
                                        .reuse(_jspx_th_ww_005ftext_005f2);
                                return;
                            }
                            _005fjspx_005ftagPool_005fww_005ftext_0026_005fname
                                    .reuse(_jspx_th_ww_005ftext_005f2);
                            out.write("\n");
                            out.write("    ");
                            int evalDoAfterBody = _jspx_th_aui_005fparam_005f3.doAfterBody();
                            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                                break;
                        } while (true);
                        if (_jspx_eval_aui_005fparam_005f3 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                            out = _jspx_page_context.popBody();
                        }
                    }
                    if (_jspx_th_aui_005fparam_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                        _005fjspx_005ftagPool_005faui_005fparam_0026_005fname
                                .reuse(_jspx_th_aui_005fparam_005f3);
                        return;
                    }
                    _005fjspx_005ftagPool_005faui_005fparam_0026_005fname.reuse(_jspx_th_aui_005fparam_005f3);
                    out.write('\n');
                    int evalDoAfterBody = _jspx_th_aui_005fcomponent_005f1.doAfterBody();
                    if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                        break;
                } while (true);
                if (_jspx_eval_aui_005fcomponent_005f1 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                    out = _jspx_page_context.popBody();
                }
            }
            if (_jspx_th_aui_005fcomponent_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                _005fjspx_005ftagPool_005faui_005fcomponent_0026_005ftheme_005ftemplate_005fid
                        .reuse(_jspx_th_aui_005fcomponent_005f1);
                return;
            }
            _005fjspx_005ftagPool_005faui_005fcomponent_0026_005ftheme_005ftemplate_005fid
                    .reuse(_jspx_th_aui_005fcomponent_005f1);
            out.write('\n');

        }

        out.write("\n");
        out.write("        ");
        out.write('\n');
        out.write('\n');
        if (_jspx_meth_ww_005fbean_005f0(_jspx_page_context))
            return;
        out.write('\n');
        out.write('\n');
        out.write('\n');

        final UnsupportedBrowserManager browserManager = ComponentManager
                .getComponentInstanceOfType(UnsupportedBrowserManager.class);
        if (browserManager.isCheckEnabled() && !browserManager.isHandledCookiePresent(request)
                && browserManager.isUnsupportedBrowser(request)) {
            request.setAttribute("messageKey", browserManager.getMessageKey(request));

            out.write('\n');
            if (_jspx_meth_aui_005fcomponent_005f2(_jspx_page_context))
                return;
            out.write('\n');
        }
        out.write("\n");
        out.write("        ");
        out.write('\n');
        out.write('\n');
        //  decorator:usePage
        com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag _jspx_th_decorator_005fusePage_005f2 = (com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag) _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                .get(com.opensymphony.module.sitemesh.taglib.decorator.UsePageTag.class);
        _jspx_th_decorator_005fusePage_005f2.setPageContext(_jspx_page_context);
        _jspx_th_decorator_005fusePage_005f2.setParent(null);
        // /includes/decorators/aui-layout/header.jsp(3,0) name = id type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_decorator_005fusePage_005f2.setId("p");
        int _jspx_eval_decorator_005fusePage_005f2 = _jspx_th_decorator_005fusePage_005f2.doStartTag();
        if (_jspx_th_decorator_005fusePage_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                    .reuse(_jspx_th_decorator_005fusePage_005f2);
            return;
        }
        _005fjspx_005ftagPool_005fdecorator_005fusePage_0026_005fid_005fnobody
                .reuse(_jspx_th_decorator_005fusePage_005f2);
        com.opensymphony.module.sitemesh.Page p = null;
        p = (com.opensymphony.module.sitemesh.Page) _jspx_page_context.findAttribute("p");
        out.write('\n');

        //
        // IDEA gives you a warning below because it cant resolve JspWriter.  I don't know why but its harmless
        //
        ComponentAccessor.getComponent(HeaderFooterRendering.class).includeTopNavigation(out, request, p);

        out.write("\n");
        out.write("    </header>\n");
        out.write("    ");
        out.write('\n');
        out.write('\n');

        AnnouncementBanner banner = ComponentAccessor.getComponentOfType(AnnouncementBanner.class);
        if (banner.isDisplay()) {

            out.write("\n");
            out.write("<div id=\"announcement-banner\" class=\"alertHeader\">\n");
            out.write("    ");
            out.print(banner.getViewHtml());
            out.write("\n");
            out.write("</div>\n");

        }

        out.write('\n');
        out.write("\n");
        out.write("    <section id=\"content\" role=\"main\">\n");
        out.write("        ");
        if (_jspx_meth_ui_005fsoy_005f0(_jspx_page_context))
            return;
        out.write("\n");
        out.write("    </section>\n");
        out.write("    <footer id=\"footer\" role=\"contentinfo\">\n");
        out.write("        ");
        out.write('\n');
        out.write('\n');

        //
        // IDEA gives you a warning below because it cant resolve JspWriter.  I don't know why but its harmless
        //
        getComponent(HeaderFooterRendering.class).includeFooters(out, request);

        out.write('\n');
        org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response,
                "/includes/decorators/global-translations.jsp", out, false);
        out.write("\n");
        out.write("    </footer>\n");
        out.write("</div>\n");
        out.write("</body>\n");
        out.write("</html>\n");
    } 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.decorators.panel_002dadmin_jsp.java

private boolean _jspx_meth_ww_005ftext_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();
    //  ww:text//w w w. j a v  a2s . c o m
    com.atlassian.jira.web.tags.TextTag _jspx_th_ww_005ftext_005f0 = (com.atlassian.jira.web.tags.TextTag) _005fjspx_005ftagPool_005fww_005ftext_0026_005fname
            .get(com.atlassian.jira.web.tags.TextTag.class);
    _jspx_th_ww_005ftext_005f0.setPageContext(_jspx_page_context);
    _jspx_th_ww_005ftext_005f0.setParent(null);
    // /includes/decorators/websudo-message.jsp(21,8) name = name type = java.lang.String reqTime = false required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_ww_005ftext_005f0.setName("'websudo.enabled.message'");
    int _jspx_eval_ww_005ftext_005f0 = _jspx_th_ww_005ftext_005f0.doStartTag();
    if (_jspx_eval_ww_005ftext_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_ww_005ftext_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.pushBody();
            _jspx_th_ww_005ftext_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
            _jspx_th_ww_005ftext_005f0.doInitBody();
        }
        do {
            out.write("\n");
            out.write("            ");
            if (_jspx_meth_ww_005fparam_005f0(_jspx_th_ww_005ftext_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("            ");
            if (_jspx_meth_ww_005fparam_005f1(_jspx_th_ww_005ftext_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("            ");
            if (_jspx_meth_ww_005fparam_005f2(_jspx_th_ww_005ftext_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("            ");
            if (_jspx_meth_ww_005fparam_005f3(_jspx_th_ww_005ftext_005f0, _jspx_page_context))
                return true;
            out.write("\n");
            out.write("        ");
            int evalDoAfterBody = _jspx_th_ww_005ftext_005f0.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
        if (_jspx_eval_ww_005ftext_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.popBody();
        }
    }
    if (_jspx_th_ww_005ftext_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fww_005ftext_0026_005fname.reuse(_jspx_th_ww_005ftext_005f0);
        return true;
    }
    _005fjspx_005ftagPool_005fww_005ftext_0026_005fname.reuse(_jspx_th_ww_005ftext_005f0);
    return false;
}

From source file:org.apache.jsp.decorators.panel_002dadmin_jsp.java

private boolean _jspx_meth_ww_005fparam_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_ww_005ftext_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();
    //  ww:param/*from w  w w.j  a v a 2s  .c o m*/
    webwork.view.taglib.ParamTag _jspx_th_ww_005fparam_005f0 = (webwork.view.taglib.ParamTag) _005fjspx_005ftagPool_005fww_005fparam_0026_005fname
            .get(webwork.view.taglib.ParamTag.class);
    _jspx_th_ww_005fparam_005f0.setPageContext(_jspx_page_context);
    _jspx_th_ww_005fparam_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_ww_005ftext_005f0);
    // /includes/decorators/websudo-message.jsp(22,12) name = name type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_ww_005fparam_005f0.setName("'value0'");
    int _jspx_eval_ww_005fparam_005f0 = _jspx_th_ww_005fparam_005f0.doStartTag();
    if (_jspx_eval_ww_005fparam_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        if (_jspx_eval_ww_005fparam_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.pushBody();
            _jspx_th_ww_005fparam_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
            _jspx_th_ww_005fparam_005f0.doInitBody();
        }
        do {
            out.write("<a id=\"websudo-drop-from-protected-page\" href=\"#\">");
            int evalDoAfterBody = _jspx_th_ww_005fparam_005f0.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                break;
        } while (true);
        if (_jspx_eval_ww_005fparam_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.popBody();
        }
    }
    if (_jspx_th_ww_005fparam_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
        _005fjspx_005ftagPool_005fww_005fparam_0026_005fname.reuse(_jspx_th_ww_005fparam_005f0);
        return true;
    }
    _005fjspx_005ftagPool_005fww_005fparam_0026_005fname.reuse(_jspx_th_ww_005fparam_005f0);
    return false;
}