Example usage for javax.servlet.jsp PageContext getOut

List of usage examples for javax.servlet.jsp PageContext getOut

Introduction

In this page you can find the example usage for javax.servlet.jsp PageContext getOut.

Prototype

abstract public JspWriter getOut();

Source Link

Document

The current value of the out object (a JspWriter).

Usage

From source file:org.apache.jsp.happyaxis_jsp.java

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

    PageContext pageContext = null;
    ServletContext application = null;/*from  w w  w . j a va 2s. c  o  m*/
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
        response.setContentType("text/html; charset=utf-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, false, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        out = pageContext.getOut();
        _jspx_out = out;

        out.write("<html>\n");
        out.write("\n");

        /*
         * Copyright 2002,2004,2005 The Apache Software Foundation.
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *      http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */

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

        /*
         * Copyright 2005 The Apache Software Foundation.
         *
         * Licensed under the Apache License, Version 2.0 (the "License");
         * you may not use this file except in compliance with the License.
         * You may obtain a copy of the License at
         *
         *      http://www.apache.org/licenses/LICENSE-2.0
         *
         * Unless required by applicable law or agreed to in writing, software
         * distributed under the License is distributed on an "AS IS" BASIS,
         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         * See the License for the specific language governing permissions and
         * limitations under the License.
         */

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

        // initialize a private HttpServletRequest
        setRequest(request);

        // set a resouce base
        setResouceBase("i18n");

        out.write("\n");
        out.write("\n");
        out.write("<head>\n");
        out.write("<title>");
        out.print(getMessage("pageTitle"));
        out.write("</title>\n");
        out.write("</head>\n");
        out.write("<body bgcolor='#ffffff'>\n");
        out.write("\n");

        out.print("<h1>" + getMessage("pageTitle") + "</h1>");
        out.print("<h2>" + getMessage("pageRole") + "</h2><p/>");

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

        out.print("<h3>" + getMessage("neededComponents") + "</h3>");

        out.write("\n");
        out.write("\n");
        out.write("<UL>\n");

        int needed = 0, wanted = 0;

        /**
         * the essentials, without these Axis is not going to work
         */

        // need to check if the available version of SAAJ API meets requirements
        String className = "javax.xml.soap.SOAPPart";
        String interfaceName = "org.w3c.dom.Document";
        Class clazz = classExists(className);
        if (clazz == null || implementsInterface(clazz, interfaceName)) {
            needed = needClass(out, "javax.xml.soap.SOAPMessage", "saaj.jar", "SAAJ API",
                    getMessage("criticalErrorMessage"), "http://ws.apache.org/axis/");
        } else {
            String location = getLocation(out, clazz);

            out.print(getMessage("invalidSAAJ", location));
            out.print(getMessage("criticalErrorMessage"));
            out.print(getMessage("seeHomepage", "http://ws.apache.org/axis/java/install.html",
                    getMessage("axisInstallation")));
            out.print("<br>");
        }

        needed += needClass(out, "javax.xml.rpc.Service", "jaxrpc.jar", "JAX-RPC API",
                getMessage("criticalErrorMessage"), "http://ws.apache.org/axis/");

        needed += needClass(out, "org.apache.axis.transport.http.AxisServlet", "axis.jar", "Apache-Axis",
                getMessage("criticalErrorMessage"), "http://ws.apache.org/axis/");

        needed += needClass(out, "org.apache.commons.discovery.Resource", "commons-discovery.jar",
                "Jakarta-Commons Discovery", getMessage("criticalErrorMessage"),
                "http://jakarta.apache.org/commons/discovery/");

        needed += needClass(out, "org.apache.commons.logging.Log", "commons-logging.jar",
                "Jakarta-Commons Logging", getMessage("criticalErrorMessage"),
                "http://jakarta.apache.org/commons/logging/");

        needed += needClass(out, "org.apache.log4j.Layout", "log4j-1.2.8.jar", "Log4j",
                getMessage("uncertainErrorMessage"), "http://jakarta.apache.org/log4j");

        //should we search for a javax.wsdl file here, to hint that it needs
        //to go into an approved directory? because we dont seem to need to do that.
        needed += needClass(out, "com.ibm.wsdl.factory.WSDLFactoryImpl", "wsdl4j.jar", "IBM's WSDL4Java",
                getMessage("criticalErrorMessage"), null);

        needed += needClass(out, "javax.xml.parsers.SAXParserFactory", "xerces.jar", "JAXP implementation",
                getMessage("criticalErrorMessage"), "http://xml.apache.org/xerces-j/");

        needed += needClass(out, "javax.activation.DataHandler", "activation.jar", "Activation API",
                getMessage("criticalErrorMessage"), "http://java.sun.com/products/javabeans/glasgow/jaf.html");

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

        out.print("<h3>" + getMessage("optionalComponents") + "</h3>");

        out.write("\n");
        out.write("<UL>\n");

        /*
         * now the stuff we can live without
         */
        wanted += wantClass(out, "javax.mail.internet.MimeMessage", "mail.jar", "Mail API",
                getMessage("attachmentsError"), "http://java.sun.com/products/javamail/");

        wanted += wantClass(out, "org.apache.xml.security.Init", "xmlsec.jar", "XML Security API",
                getMessage("xmlSecurityError"), "http://xml.apache.org/security/");

        wanted += wantClass(out, "javax.net.ssl.SSLSocketFactory", "jsse.jar or java1.4+ runtime",
                "Java Secure Socket Extension", getMessage("httpsError"), "http://java.sun.com/products/jsse/");
        /*
         * resources on the classpath path
         */
        /* add more libraries here */

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

        out.write("<h3>");
        //is everythng we need here
        if (needed == 0) {
            //yes, be happy
            out.write(getMessage("happyResult00"));
        } else {
            //no, be very unhappy
            response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
            out.write(getMessage("unhappyResult00", Integer.toString(needed)));
        }
        //now look at wanted stuff
        if (wanted > 0) {
            out.write(getMessage("unhappyResult01", Integer.toString(wanted)));
        } else {
            out.write(getMessage("happyResult01"));
        }
        out.write("</h3>");

        out.write("\n");
        out.write("<UL>\n");

        //hint if anything is missing
        if (needed > 0 || wanted > 0) {
            out.write(getMessage("hintString"));
        }

        out.write(getMessage("noteString"));

        out.write("\n");
        out.write("</UL>\n");
        out.write("\n");
        out.write("    <h2>");
        out.print(getMessage("apsExamining"));
        out.write("</h2>\n");
        out.write("\n");
        out.write("<UL>\n");
        out.write("    ");

        String servletVersion = getServletVersion();
        String xmlParser = getParserName();
        String xmlParserLocation = getParserLocation(out);

        out.write("\n");
        out.write("    <table border=\"1\" cellpadding=\"10\">\n");
        out.write("        <tr><td>Servlet version</td><td>");
        out.print(servletVersion);
        out.write("</td></tr>\n");
        out.write("        <tr><td>XML Parser</td><td>");
        out.print(xmlParser);
        out.write("</td></tr>\n");
        out.write("        <tr><td>XML ParserLocation</td><td>");
        out.print(xmlParserLocation);
        out.write("</td></tr>\n");
        out.write("    </table>\n");
        out.write("</UL>\n");
        out.write("\n");
        if (xmlParser.indexOf("crimson") >= 0) {
            out.write("\n");
            out.write("    <p>\n");
            out.write("    ");
            out.print(getMessage("recommendedParser"));
            out.write("\n");
            out.write("    </p>\n");
        }
        out.write("\n");
        out.write("\n");
        out.write("    <h2>");
        out.print(getMessage("sysExamining"));
        out.write("</h2>\n");
        out.write("<UL>\n");

        /**
         * Dump the system properties
         */
        java.util.Enumeration e = null;
        try {
            e = System.getProperties().propertyNames();
        } catch (SecurityException se) {
        }
        if (e != null) {
            out.write("<pre>");
            for (; e.hasMoreElements();) {
                String key = (String) e.nextElement();
                out.write(key + "=" + System.getProperty(key) + "\n");
            }
            out.write("</pre><p>");
        } else {
            out.write(getMessage("sysPropError"));
        }

        out.write("\n");
        out.write("</UL>\n");
        out.write("    <hr>\n");
        out.write("    ");
        out.print(getMessage("apsPlatform"));
        out.write(":\n");
        out.write("    ");
        out.print(getServletConfig().getServletContext().getServerInfo());
        out.write("\n");
        out.write("</body>\n");
        out.write("</html>\n");
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    out.clearBuffer();
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.html.common.error_jsp.java

private boolean _jspx_meth_liferay_002dui_005fmessage_005f0(
            javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fwhen_005f0, PageContext _jspx_page_context)
            throws Throwable {
        PageContext pageContext = _jspx_page_context;
        JspWriter out = _jspx_page_context.getOut();
        //  liferay-ui:message
        com.liferay.taglib.ui.MessageTag _jspx_th_liferay_002dui_005fmessage_005f0 = (com.liferay.taglib.ui.MessageTag) _005fjspx_005ftagPool_005fliferay_002dui_005fmessage_0026_005fkey_005fnobody
                .get(com.liferay.taglib.ui.MessageTag.class);
        _jspx_th_liferay_002dui_005fmessage_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005fmessage_005f0
                .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fwhen_005f0);
        // /html/common/error.jsp(56,4) name = key type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005fmessage_005f0.setKey("you-do-not-have-permission-to-view-this-page");
        int _jspx_eval_liferay_002dui_005fmessage_005f0 = _jspx_th_liferay_002dui_005fmessage_005f0.doStartTag();
        if (_jspx_th_liferay_002dui_005fmessage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005fmessage_0026_005fkey_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005fmessage_005f0);
            return true;
        }//from  ww  w. j a v  a2 s . c  o  m
        _005fjspx_005ftagPool_005fliferay_002dui_005fmessage_0026_005fkey_005fnobody
                .reuse(_jspx_th_liferay_002dui_005fmessage_005f0);
        return false;
    }

From source file:org.apache.jsp.html.common.error_jsp.java

private boolean _jspx_meth_c_005fotherwise_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fchoose_005f0,
            PageContext _jspx_page_context) throws Throwable {
        PageContext pageContext = _jspx_page_context;
        JspWriter out = _jspx_page_context.getOut();
        //  c:otherwise
        org.apache.taglibs.standard.tag.common.core.OtherwiseTag _jspx_th_c_005fotherwise_005f0 = (org.apache.taglibs.standard.tag.common.core.OtherwiseTag) _005fjspx_005ftagPool_005fc_005fotherwise
                .get(org.apache.taglibs.standard.tag.common.core.OtherwiseTag.class);
        _jspx_th_c_005fotherwise_005f0.setPageContext(_jspx_page_context);
        _jspx_th_c_005fotherwise_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fchoose_005f0);
        int _jspx_eval_c_005fotherwise_005f0 = _jspx_th_c_005fotherwise_005f0.doStartTag();
        if (_jspx_eval_c_005fotherwise_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            do {//from   www .  j a v a2  s .com
                out.write("\n");
                out.write("\t\t\t\t");
                if (_jspx_meth_liferay_002dui_005fmessage_005f1(_jspx_th_c_005fotherwise_005f0, _jspx_page_context))
                    return true;
                out.write("\n");
                out.write("\t\t\t");
                int evalDoAfterBody = _jspx_th_c_005fotherwise_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
            } while (true);
        }
        if (_jspx_th_c_005fotherwise_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fc_005fotherwise.reuse(_jspx_th_c_005fotherwise_005f0);
            return true;
        }
        _005fjspx_005ftagPool_005fc_005fotherwise.reuse(_jspx_th_c_005fotherwise_005f0);
        return false;
    }

From source file:org.apache.jsp.html.common.error_jsp.java

private boolean _jspx_meth_liferay_002dui_005fmessage_005f1(
            javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fotherwise_005f0, PageContext _jspx_page_context)
            throws Throwable {
        PageContext pageContext = _jspx_page_context;
        JspWriter out = _jspx_page_context.getOut();
        //  liferay-ui:message
        com.liferay.taglib.ui.MessageTag _jspx_th_liferay_002dui_005fmessage_005f1 = (com.liferay.taglib.ui.MessageTag) _005fjspx_005ftagPool_005fliferay_002dui_005fmessage_0026_005fkey_005fnobody
                .get(com.liferay.taglib.ui.MessageTag.class);
        _jspx_th_liferay_002dui_005fmessage_005f1.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dui_005fmessage_005f1
                .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fotherwise_005f0);
        // /html/common/error.jsp(59,4) name = key type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dui_005fmessage_005f1.setKey("an-unexpected-system-error-occurred");
        int _jspx_eval_liferay_002dui_005fmessage_005f1 = _jspx_th_liferay_002dui_005fmessage_005f1.doStartTag();
        if (_jspx_th_liferay_002dui_005fmessage_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dui_005fmessage_0026_005fkey_005fnobody
                    .reuse(_jspx_th_liferay_002dui_005fmessage_005f1);
            return true;
        }//w ww .  j a v  a  2s  . c  o m
        _005fjspx_005ftagPool_005fliferay_002dui_005fmessage_0026_005fkey_005fnobody
                .reuse(_jspx_th_liferay_002dui_005fmessage_005f1);
        return false;
    }

From source file:org.apache.jsp.html.common.referer_005fjs_jsp.java

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

    PageContext pageContext = null;
    HttpSession session = null;//from www . jav a  2s . c o m
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
        response.setContentType("text/html; charset=UTF-8");
        pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
        _jspx_page_context = pageContext;
        application = pageContext.getServletContext();
        config = pageContext.getServletConfig();
        session = pageContext.getSession();
        out = pageContext.getOut();
        _jspx_out = out;

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

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

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

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

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

        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");
        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");
        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");
        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");
        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");
        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");
        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");
        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");
        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");
        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");
        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");
        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");
        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");
        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");
        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");
        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");
        //  liferay-theme:defineObjects
        com.liferay.taglib.theme.DefineObjectsTag _jspx_th_liferay_002dtheme_005fdefineObjects_005f0 = (com.liferay.taglib.theme.DefineObjectsTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .get(com.liferay.taglib.theme.DefineObjectsTag.class);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dtheme_005fdefineObjects_005f0.setParent(null);
        int _jspx_eval_liferay_002dtheme_005fdefineObjects_005f0 = _jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doStartTag();
        if (_jspx_th_liferay_002dtheme_005fdefineObjects_005f0
                .doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                    .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
            return;
        }
        _005fjspx_005ftagPool_005fliferay_002dtheme_005fdefineObjects_005fnobody
                .reuse(_jspx_th_liferay_002dtheme_005fdefineObjects_005f0);
        com.liferay.portal.theme.ThemeDisplay themeDisplay = null;
        com.liferay.portal.model.Company company = null;
        com.liferay.portal.model.Account account = null;
        com.liferay.portal.model.User user = null;
        com.liferay.portal.model.User realUser = null;
        com.liferay.portal.model.Contact contact = null;
        com.liferay.portal.model.Layout layout = null;
        java.util.List layouts = null;
        java.lang.Long plid = null;
        com.liferay.portal.model.LayoutTypePortlet layoutTypePortlet = null;
        java.lang.Long scopeGroupId = null;
        com.liferay.portal.security.permission.PermissionChecker permissionChecker = null;
        java.util.Locale locale = null;
        java.util.TimeZone timeZone = null;
        com.liferay.portal.model.Theme theme = null;
        com.liferay.portal.model.ColorScheme colorScheme = null;
        com.liferay.portal.theme.PortletDisplay portletDisplay = null;
        java.lang.Long portletGroupId = null;
        themeDisplay = (com.liferay.portal.theme.ThemeDisplay) _jspx_page_context.findAttribute("themeDisplay");
        company = (com.liferay.portal.model.Company) _jspx_page_context.findAttribute("company");
        account = (com.liferay.portal.model.Account) _jspx_page_context.findAttribute("account");
        user = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("user");
        realUser = (com.liferay.portal.model.User) _jspx_page_context.findAttribute("realUser");
        contact = (com.liferay.portal.model.Contact) _jspx_page_context.findAttribute("contact");
        layout = (com.liferay.portal.model.Layout) _jspx_page_context.findAttribute("layout");
        layouts = (java.util.List) _jspx_page_context.findAttribute("layouts");
        plid = (java.lang.Long) _jspx_page_context.findAttribute("plid");
        layoutTypePortlet = (com.liferay.portal.model.LayoutTypePortlet) _jspx_page_context
                .findAttribute("layoutTypePortlet");
        scopeGroupId = (java.lang.Long) _jspx_page_context.findAttribute("scopeGroupId");
        permissionChecker = (com.liferay.portal.security.permission.PermissionChecker) _jspx_page_context
                .findAttribute("permissionChecker");
        locale = (java.util.Locale) _jspx_page_context.findAttribute("locale");
        timeZone = (java.util.TimeZone) _jspx_page_context.findAttribute("timeZone");
        theme = (com.liferay.portal.model.Theme) _jspx_page_context.findAttribute("theme");
        colorScheme = (com.liferay.portal.model.ColorScheme) _jspx_page_context.findAttribute("colorScheme");
        portletDisplay = (com.liferay.portal.theme.PortletDisplay) _jspx_page_context
                .findAttribute("portletDisplay");
        portletGroupId = (java.lang.Long) _jspx_page_context.findAttribute("portletGroupId");
        out.write('\n');
        out.write('\n');

        /**
         * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
         *
         * This library is free software; you can redistribute it and/or modify it under
         * the terms of the GNU Lesser General Public License as published by the Free
         * Software Foundation; either version 2.1 of the License, or (at your option)
         * any later version.
         *
         * This library is distributed in the hope that it will be useful, but WITHOUT
         * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
         * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
         * details.
         */

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

        String referer = null;

        String refererParam = PortalUtil.escapeRedirect(request.getParameter(WebKeys.REFERER));
        String refererRequest = (String) request.getAttribute(WebKeys.REFERER);
        String refererSession = (String) session.getAttribute(WebKeys.REFERER);

        if ((refererParam != null) && (!refererParam.equals(StringPool.NULL))
                && (!refererParam.equals(StringPool.BLANK))) {
            referer = refererParam;
        } else if ((refererRequest != null) && (!refererRequest.equals(StringPool.NULL))
                && (!refererRequest.equals(StringPool.BLANK))) {
            referer = refererRequest;
        } else if ((refererSession != null) && (!refererSession.equals(StringPool.NULL))
                && (!refererSession.equals(StringPool.BLANK))) {
            referer = refererSession;
        } else if (themeDisplay != null) {
            referer = themeDisplay.getPathMain();
        } else {
            referer = PortalUtil.getPathMain();
        }

        out.write("\n");
        out.write("\n");
        out.write("<script type=\"text/javascript\">\n");
        out.write("\tlocation.href = '");
        out.print(HtmlUtil.escapeJS(referer));
        out.write("';\n");
        out.write("</script>");
    } catch (Throwable t) {
        if (!(t instanceof SkipPageException)) {
            out = _jspx_out;
            if (out != null && out.getBufferSize() != 0)
                try {
                    out.clearBuffer();
                } catch (java.io.IOException e) {
                }
            if (_jspx_page_context != null)
                _jspx_page_context.handlePageException(t);
        }
    } finally {
        _jspxFactory.releasePageContext(_jspx_page_context);
    }
}

From source file:org.apache.jsp.html.common.themes.bottom_jsp.java

private boolean _jspx_meth_aui_005fscript_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f2,
            PageContext _jspx_page_context) throws Throwable {
        PageContext pageContext = _jspx_page_context;
        JspWriter out = _jspx_page_context.getOut();
        //  aui:script
        com.liferay.taglib.aui.ScriptTag _jspx_th_aui_005fscript_005f0 = (com.liferay.taglib.aui.ScriptTag) _005fjspx_005ftagPool_005faui_005fscript
                .get(com.liferay.taglib.aui.ScriptTag.class);
        _jspx_th_aui_005fscript_005f0.setPageContext(_jspx_page_context);
        _jspx_th_aui_005fscript_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f2);
        int _jspx_eval_aui_005fscript_005f0 = _jspx_th_aui_005fscript_005f0.doStartTag();
        if (_jspx_eval_aui_005fscript_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_aui_005fscript_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.pushBody();
                _jspx_th_aui_005fscript_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                _jspx_th_aui_005fscript_005f0.doInitBody();
            }/*from   w  ww  . ja v  a2 s  .  c  om*/
            do {
                out.write("\n");
                out.write("\t\tLiferay.provide(\n");
                out.write("\t\t\tLiferay.Portlet,\n");
                out.write("\t\t\t'refreshLayout',\n");
                out.write("\t\t\tfunction(portletBound) {\n");
                out.write("\t\t\t\tif (!portletBound.isStatic) {\n");
                out.write("\t\t\t\t\tLiferay.Layout.refresh(portletBound);\n");
                out.write("\t\t\t\t}\n");
                out.write("\t\t\t},\n");
                out.write("\t\t\t['liferay-layout']\n");
                out.write("\t\t);\n");
                out.write("\t");
                int evalDoAfterBody = _jspx_th_aui_005fscript_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
            } while (true);
            if (_jspx_eval_aui_005fscript_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.popBody();
            }
        }
        if (_jspx_th_aui_005fscript_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005faui_005fscript.reuse(_jspx_th_aui_005fscript_005f0);
            return true;
        }
        _005fjspx_005ftagPool_005faui_005fscript.reuse(_jspx_th_aui_005fscript_005f0);
        return false;
    }

From source file:org.apache.jsp.html.common.themes.bottom_jsp.java

private boolean _jspx_meth_aui_005fscript_005f2(PageContext _jspx_page_context) throws Throwable {
        PageContext pageContext = _jspx_page_context;
        JspWriter out = _jspx_page_context.getOut();
        //  aui:script
        com.liferay.taglib.aui.ScriptTag _jspx_th_aui_005fscript_005f2 = (com.liferay.taglib.aui.ScriptTag) _005fjspx_005ftagPool_005faui_005fscript_0026_005fuse
                .get(com.liferay.taglib.aui.ScriptTag.class);
        _jspx_th_aui_005fscript_005f2.setPageContext(_jspx_page_context);
        _jspx_th_aui_005fscript_005f2.setParent(null);
        // /html/common/themes/bottom_js.jspf(39,0) name = use type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_aui_005fscript_005f2.setUse("aui-base");
        int _jspx_eval_aui_005fscript_005f2 = _jspx_th_aui_005fscript_005f2.doStartTag();
        if (_jspx_eval_aui_005fscript_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            if (_jspx_eval_aui_005fscript_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.pushBody();
                _jspx_th_aui_005fscript_005f2.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
                _jspx_th_aui_005fscript_005f2.doInitBody();
            }/*w  ww.ja v  a 2  s.  co m*/
            do {
                out.write("\n");
                out.write("\tLiferay.Util.addInputType();\n");
                out.write("\n");
                out.write("\tLiferay.Portlet.ready(\n");
                out.write("\t\tfunction(portletId, node) {\n");
                out.write("\t\t\tLiferay.Util.addInputType(node);\n");
                out.write("\t\t}\n");
                out.write("\t);\n");
                int evalDoAfterBody = _jspx_th_aui_005fscript_005f2.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                    break;
            } while (true);
            if (_jspx_eval_aui_005fscript_005f2 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.popBody();
            }
        }
        if (_jspx_th_aui_005fscript_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005faui_005fscript_0026_005fuse.reuse(_jspx_th_aui_005fscript_005f2);
            return true;
        }
        _005fjspx_005ftagPool_005faui_005fscript_0026_005fuse.reuse(_jspx_th_aui_005fscript_005f2);
        return false;
    }

From source file:org.apache.jsp.html.common.themes.bottom_jsp.java

private boolean _jspx_meth_liferay_002dutil_005finclude_005f0(PageContext _jspx_page_context) throws Throwable {
        PageContext pageContext = _jspx_page_context;
        JspWriter out = _jspx_page_context.getOut();
        //  liferay-util:include
        com.liferay.taglib.util.IncludeTag _jspx_th_liferay_002dutil_005finclude_005f0 = (com.liferay.taglib.util.IncludeTag) _005fjspx_005ftagPool_005fliferay_002dutil_005finclude_0026_005fpage_005fnobody
                .get(com.liferay.taglib.util.IncludeTag.class);
        _jspx_th_liferay_002dutil_005finclude_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dutil_005finclude_005f0.setParent(null);
        // /html/common/themes/bottom.jsp(193,0) name = page type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dutil_005finclude_005f0.setPage("/html/common/themes/bottom-ext.jsp");
        int _jspx_eval_liferay_002dutil_005finclude_005f0 = _jspx_th_liferay_002dutil_005finclude_005f0
                .doStartTag();/*from  ww w  .jav  a 2 s.  c o  m*/
        if (_jspx_th_liferay_002dutil_005finclude_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dutil_005finclude_0026_005fpage_005fnobody
                    .reuse(_jspx_th_liferay_002dutil_005finclude_005f0);
            return true;
        }
        _005fjspx_005ftagPool_005fliferay_002dutil_005finclude_0026_005fpage_005fnobody
                .reuse(_jspx_th_liferay_002dutil_005finclude_005f0);
        return false;
    }

From source file:org.apache.jsp.html.common.themes.portal_jsp.java

private boolean _jspx_meth_liferay_002dtheme_005finclude_005f0(
            javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fwhen_005f1, PageContext _jspx_page_context)
            throws Throwable {
        PageContext pageContext = _jspx_page_context;
        JspWriter out = _jspx_page_context.getOut();
        //  liferay-theme:include
        com.liferay.taglib.theme.IncludeTag _jspx_th_liferay_002dtheme_005finclude_005f0 = (com.liferay.taglib.theme.IncludeTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005finclude_0026_005fpage_005fnobody
                .get(com.liferay.taglib.theme.IncludeTag.class);
        _jspx_th_liferay_002dtheme_005finclude_005f0.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dtheme_005finclude_005f0
                .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fwhen_005f1);
        // /html/common/themes/portal.jsp(32,2) name = page type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dtheme_005finclude_005f0.setPage("portal_pop_up.jsp");
        int _jspx_eval_liferay_002dtheme_005finclude_005f0 = _jspx_th_liferay_002dtheme_005finclude_005f0
                .doStartTag();//from ww w .  j ava 2s  .c om
        if (_jspx_th_liferay_002dtheme_005finclude_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005finclude_0026_005fpage_005fnobody
                    .reuse(_jspx_th_liferay_002dtheme_005finclude_005f0);
            return true;
        }
        _005fjspx_005ftagPool_005fliferay_002dtheme_005finclude_0026_005fpage_005fnobody
                .reuse(_jspx_th_liferay_002dtheme_005finclude_005f0);
        return false;
    }

From source file:org.apache.jsp.html.common.themes.portal_jsp.java

private boolean _jspx_meth_liferay_002dtheme_005finclude_005f1(
            javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fotherwise_005f0, PageContext _jspx_page_context)
            throws Throwable {
        PageContext pageContext = _jspx_page_context;
        JspWriter out = _jspx_page_context.getOut();
        //  liferay-theme:include
        com.liferay.taglib.theme.IncludeTag _jspx_th_liferay_002dtheme_005finclude_005f1 = (com.liferay.taglib.theme.IncludeTag) _005fjspx_005ftagPool_005fliferay_002dtheme_005finclude_0026_005fpage_005fnobody
                .get(com.liferay.taglib.theme.IncludeTag.class);
        _jspx_th_liferay_002dtheme_005finclude_005f1.setPageContext(_jspx_page_context);
        _jspx_th_liferay_002dtheme_005finclude_005f1
                .setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fotherwise_005f0);
        // /html/common/themes/portal.jsp(35,2) name = page type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
        _jspx_th_liferay_002dtheme_005finclude_005f1.setPage("portal_normal.jsp");
        int _jspx_eval_liferay_002dtheme_005finclude_005f1 = _jspx_th_liferay_002dtheme_005finclude_005f1
                .doStartTag();/* w ww  . j ava2 s.co  m*/
        if (_jspx_th_liferay_002dtheme_005finclude_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
            _005fjspx_005ftagPool_005fliferay_002dtheme_005finclude_0026_005fpage_005fnobody
                    .reuse(_jspx_th_liferay_002dtheme_005finclude_005f1);
            return true;
        }
        _005fjspx_005ftagPool_005fliferay_002dtheme_005finclude_0026_005fpage_005fnobody
                .reuse(_jspx_th_liferay_002dtheme_005finclude_005f1);
        return false;
    }