List of usage examples for javax.servlet.jsp PageContext findAttribute
abstract public Object findAttribute(String name);
From source file:com.glaf.core.tag.TagUtils.java
/** * Retrieves the value from request scope and if it isn't already an * <code>ViewMessages</code>, some classes are converted to one. * //from www. jav a 2 s. c o m * @param pageContext * The PageContext for the current page * @param paramName * Key for parameter value * @return ActionErrors in page context. * @throws JspException */ public ViewMessages getViewMessages(PageContext pageContext, String paramName) throws JspException { ViewMessages am = new ViewMessages(); Object value = pageContext.findAttribute(paramName); if (value != null) { try { if (value instanceof String) { am.add(ViewMessages.GLOBAL_MESSAGE, new ViewMessage((String) value)); } else if (value instanceof String[]) { String[] keys = (String[]) value; for (int i = 0; i < keys.length; i++) { am.add(ViewMessages.GLOBAL_MESSAGE, new ViewMessage(keys[i])); } } else if (value instanceof ViewMessages) { am = (ViewMessages) value; } else { throw new JspException(messages.getMessage("viewMessages.errors", value.getClass().getName())); } } catch (JspException e) { throw e; } catch (Exception e) { log.warn("Unable to retieve ViewMessage for paramName : " + paramName, e); } } return am; }
From source file:com.glaf.core.tag.TagUtils.java
/** * Locate and return the specified property of the specified bean, from an * optionally specified scope, in the specified page context. If an * exception is thrown, it will have already been saved via a call to * <code>saveException()</code>. * /*from w w w .j a v a 2 s. c o m*/ * @param pageContext * Page context to be searched * @param name * Name of the bean to be retrieved * @param property * Name of the property to be retrieved, or <code>null</code> to * retrieve the bean itself * @param scope * Scope to be searched (page, request, session, application) or * <code>null</code> to use <code>findAttribute()</code> instead * @return property of specified JavaBean * @throws JspException * if an invalid scope name is requested * @throws JspException * if the specified bean is not found * @throws JspException * if accessing this property causes an IllegalAccessException, * IllegalArgumentException, InvocationTargetException, or * NoSuchMethodException */ public Object lookup(PageContext pageContext, String name, String property, String scope) throws JspException { // Look up the requested bean, and return if requested Object bean = lookup(pageContext, name, scope); if (bean == null) { JspException e = null; if (scope == null) { e = new JspException(messages.getMessage("lookup.bean.any", name)); } else { e = new JspException(messages.getMessage("lookup.bean", name, scope)); } saveException(pageContext, e); throw e; } if (property == null) { return bean; } // Locate and return the specified property try { return PropertyUtils.getProperty(bean, property); } catch (IllegalAccessException e) { saveException(pageContext, e); throw new JspException(messages.getMessage("lookup.access", property, name)); } catch (IllegalArgumentException e) { saveException(pageContext, e); throw new JspException(messages.getMessage("lookup.argument", property, name)); } catch (InvocationTargetException e) { Throwable t = e.getTargetException(); if (t == null) { t = e; } saveException(pageContext, t); throw new JspException(messages.getMessage("lookup.target", property, name)); } catch (NoSuchMethodException e) { saveException(pageContext, e); String beanName = name; // Name defaults to Contants.BEAN_KEY if no name is specified by // an input tag. Thus lookup the bean under the key and use // its class name for the exception message. if (Globals.BEAN_KEY.equals(name)) { Object obj = pageContext.findAttribute(Globals.BEAN_KEY); if (obj != null) { beanName = obj.getClass().getName(); } } throw new JspException(messages.getMessage("lookup.method", property, beanName)); } }
From source file:org.sakaiproject.iclicker.tool.ToolController.java
public void processAdmin(PageContext pageContext, HttpServletRequest request) { // admin check if (!this.isAdmin()) { throw new SecurityException("Current user is not an admin and cannot access the admin view"); }/*from w w w . j a va2s . co m*/ int pageNum = 1; int perPageNum = 20; // does not change if ((request.getParameter("page") != null)) { try { pageNum = Integer.parseInt(request.getParameter("page")); if (pageNum < 1) { pageNum = 1; } } catch (NumberFormatException e) { // nothing to do System.err.println("WARN: invalid page number: " + request.getParameter("page") + ":" + e); } } pageContext.setAttribute("page", pageNum); pageContext.setAttribute("perPage", perPageNum); String sort = "clickerId"; if ((request.getParameter("sort") != null)) { sort = request.getParameter("sort"); } pageContext.setAttribute("sort", sort); if ("POST".equalsIgnoreCase(request.getMethod())) { if ((request.getParameter("activate") != null)) { // First arrived at this page boolean activate = Boolean.parseBoolean(request.getParameter("activate")); if ((request.getParameter("registrationId") == null)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.empty", (Object[]) null); } else { try { Long registrationId = Long.parseLong(request.getParameter("registrationId")); // save a new clicker registration ClickerRegistration cr = this.getLogic().setRegistrationActive(registrationId, activate); if (cr != null) { ToolController.addMessage(pageContext, ToolController.KEY_INFO, "admin.activate.success." + cr.isActivated(), cr.getClickerId(), this.getLogic().getUserDisplayName(cr.getOwnerId())); } } catch (NumberFormatException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.nonnumeric", request.getParameter("registrationId")); } } } else if ((request.getParameter("remove") != null)) { if ((request.getParameter("registrationId") == null)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.empty", (Object[]) null); } else { try { Long registrationId = Long.parseLong(request.getParameter("registrationId")); ClickerRegistration cr = this.getLogic().getItemById(registrationId); if (cr != null) { this.getLogic().removeItem(cr); ToolController.addMessage(pageContext, ToolController.KEY_INFO, "admin.delete.success", cr.getClickerId(), registrationId, this.getLogic().getUserDisplayName(cr.getOwnerId())); } } catch (NumberFormatException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.nonnumeric", request.getParameter("registrationId")); } } } else if ((request.getParameter("runner") != null)) { // initiate the runner process String runnerType; if ((request.getParameter("addAll") != null)) { runnerType = BigRunner.RUNNER_TYPE_ADD; } else if ((request.getParameter("removeAll") != null)) { runnerType = BigRunner.RUNNER_TYPE_REMOVE; } else if ((request.getParameter("syncAll") != null)) { runnerType = BigRunner.RUNNER_TYPE_SYNC; } else { throw new IllegalArgumentException("Invalid request type: missing valid parameter"); } try { logic.startRunnerOperation(runnerType); String msgKey = "admin.process.message." + runnerType; ToolController.addMessage(pageContext, ToolController.KEY_INFO, msgKey, (Object[]) null); } catch (ClickerLockException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "admin.process.message.locked", runnerType); } catch (IllegalStateException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "admin.process.message.locked", runnerType); } } else { // invalid POST System.err .println("WARN: Invalid POST: does not contain runner, remove, or activate, nothing to do"); } } // put config data into page pageContext.setAttribute("ssoEnabled", logic.isSingleSignOnEnabled()); if (logic.isSingleSignOnEnabled()) { pageContext.setAttribute("ssoSharedKey", logic.getSharedKey()); } pageContext.setAttribute("domainURL", logic.domainURL); pageContext.setAttribute("workspacePageTitle", logic.workspacePageTitle); // put error data into page pageContext.setAttribute("recentFailures", logic.getFailures()); // put runner status in page makeRunnerStatus(pageContext, true); // handling the calcs for paging int first = (pageNum - 1) * perPageNum; int totalCount = this.getLogic().countAllItems(); int pageCount = (totalCount + perPageNum - 1) / perPageNum; pageContext.setAttribute("totalCount", totalCount); pageContext.setAttribute("pageCount", pageCount); pageContext.setAttribute("registrations", this.getLogic().getAllItems(first, perPageNum, sort, null, true)); if (totalCount > 0) { StringBuilder sb = new StringBuilder(); Date d = new Date(); for (int i = 0; i < pageCount; i++) { int currentPage = i + 1; int currentStart = (i * perPageNum) + 1; int currentEnd = currentStart + perPageNum - 1; if (currentEnd > totalCount) { currentEnd = totalCount; } String marker = "[" + currentStart + ".." + currentEnd + "]"; if (currentPage == pageNum) { // make it bold and not a link sb.append("<span class=\"paging_current paging_item\">").append(marker).append("</span>\n"); } else { // make it a link sb.append("<a class=\"paging_link paging_item\" href=\"") .append(pageContext.findAttribute("adminPath")).append("&page=").append(currentPage) .append("&sort=").append(sort).append("&nc=").append(d.getTime() + currentPage) .append("\">").append(marker).append("</a>\n"); } } pageContext.setAttribute("pagerHTML", sb.toString()); } }
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 {// w w w. ja v a 2 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 w w .j av a 2s . 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"); 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.html.common.referer_005fjs_jsp.java
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null;//from w ww .j a va 2s . c o m HttpSession session = null; 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.portal.error_jsp.java
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null;/*from ww w .j a v a2 s. c o m*/ HttpSession session = null; 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"); 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'); Boolean staleSession = (Boolean) session.getAttribute(WebKeys.STALE_SESSION); String userLogin = user.getEmailAddress(); if (company.getAuthType().equals(CompanyConstants.AUTH_TYPE_SN)) { userLogin = user.getScreenName(); } else if (company.getAuthType().equals(CompanyConstants.AUTH_TYPE_ID)) { userLogin = String.valueOf(user.getUserId()); } out.write('\n'); out.write('\n'); // c:if org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context); _jspx_th_c_005fif_005f0.setParent(null); // /html/portal/error.jsp(32,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_c_005fif_005f0.setTest((staleSession != null) && staleSession.booleanValue()); int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag(); if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\n"); out.write("\t<div class=\"portlet-msg-error\">\n"); out.write("\t\t"); if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_th_c_005fif_005f0, _jspx_page_context)) return; out.write("\n"); out.write("\t</div>\n"); out.write("\n"); out.write("\t"); session.invalidate(); out.write('\n'); out.write('\n'); int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0); return; } _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0); out.write('\n'); out.write('\n'); // c:if org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); _jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context); _jspx_th_c_005fif_005f1.setParent(null); // /html/portal/error.jsp(43,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_c_005fif_005f1 .setTest(SessionErrors.contains(request, LayoutPermissionException.class.getName())); int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag(); if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\n"); out.write("\t<div class=\"portlet-msg-error\">\n"); out.write("\t\t"); if (_jspx_meth_liferay_002dui_005fmessage_005f1(_jspx_th_c_005fif_005f1, _jspx_page_context)) return; out.write("\n"); out.write("\t</div>\n"); int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1); return; } _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1); out.write('\n'); out.write('\n'); // c:if org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f2 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); _jspx_th_c_005fif_005f2.setPageContext(_jspx_page_context); _jspx_th_c_005fif_005f2.setParent(null); // /html/portal/error.jsp(49,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_c_005fif_005f2 .setTest(SessionErrors.contains(request, PortletActiveException.class.getName())); int _jspx_eval_c_005fif_005f2 = _jspx_th_c_005fif_005f2.doStartTag(); if (_jspx_eval_c_005fif_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\n"); out.write("\t<div class=\"portlet-msg-error\">\n"); out.write("\t\t"); if (_jspx_meth_liferay_002dui_005fmessage_005f2(_jspx_th_c_005fif_005f2, _jspx_page_context)) return; out.write("\n"); out.write("\t</div>\n"); int evalDoAfterBody = _jspx_th_c_005fif_005f2.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_005fif_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2); return; } _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2); out.write('\n'); out.write('\n'); // c:if org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f3 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); _jspx_th_c_005fif_005f3.setPageContext(_jspx_page_context); _jspx_th_c_005fif_005f3.setParent(null); // /html/portal/error.jsp(55,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_c_005fif_005f3.setTest(SessionErrors.contains(request, PrincipalException.class.getName())); int _jspx_eval_c_005fif_005f3 = _jspx_th_c_005fif_005f3.doStartTag(); if (_jspx_eval_c_005fif_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\n"); out.write("\t<div class=\"portlet-msg-error\">\n"); out.write("\t\t"); if (_jspx_meth_liferay_002dui_005fmessage_005f3(_jspx_th_c_005fif_005f3, _jspx_page_context)) return; out.write("\n"); out.write("\t</div>\n"); int evalDoAfterBody = _jspx_th_c_005fif_005f3.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_005fif_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3); return; } _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3); out.write('\n'); out.write('\n'); // c:if org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f4 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); _jspx_th_c_005fif_005f4.setPageContext(_jspx_page_context); _jspx_th_c_005fif_005f4.setParent(null); // /html/portal/error.jsp(61,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_c_005fif_005f4 .setTest(SessionErrors.contains(request, RequiredLayoutException.class.getName())); int _jspx_eval_c_005fif_005f4 = _jspx_th_c_005fif_005f4.doStartTag(); if (_jspx_eval_c_005fif_005f4 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\n"); out.write("\t<div class=\"portlet-msg-error\">\n"); out.write("\t\t"); if (_jspx_meth_liferay_002dui_005fmessage_005f4(_jspx_th_c_005fif_005f4, _jspx_page_context)) return; out.write("\n"); out.write("\t</div>\n"); int evalDoAfterBody = _jspx_th_c_005fif_005f4.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_005fif_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4); return; } _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4); out.write('\n'); out.write('\n'); // c:if org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f5 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); _jspx_th_c_005fif_005f5.setPageContext(_jspx_page_context); _jspx_th_c_005fif_005f5.setParent(null); // /html/portal/error.jsp(67,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_c_005fif_005f5.setTest(SessionErrors.contains(request, RequiredRoleException.class.getName())); int _jspx_eval_c_005fif_005f5 = _jspx_th_c_005fif_005f5.doStartTag(); if (_jspx_eval_c_005fif_005f5 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\n"); out.write("\t<div class=\"portlet-msg-error\">\n"); out.write("\t\t"); if (_jspx_meth_liferay_002dui_005fmessage_005f5(_jspx_th_c_005fif_005f5, _jspx_page_context)) return; out.write("\n"); out.write("\t</div>\n"); int evalDoAfterBody = _jspx_th_c_005fif_005f5.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_005fif_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f5); return; } _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f5); out.write('\n'); out.write('\n'); // c:if org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f6 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest .get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); _jspx_th_c_005fif_005f6.setPageContext(_jspx_page_context); _jspx_th_c_005fif_005f6.setParent(null); // /html/portal/error.jsp(73,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_c_005fif_005f6.setTest(SessionErrors.contains(request, UserActiveException.class.getName())); int _jspx_eval_c_005fif_005f6 = _jspx_th_c_005fif_005f6.doStartTag(); if (_jspx_eval_c_005fif_005f6 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\n"); out.write("\t<div class=\"portlet-msg-error\">\n"); out.write("\t\t"); out.print(LanguageUtil.format(pageContext, "your-account-with-login-x-is-not-active", new LanguageWrapper[] { new LanguageWrapper("", HtmlUtil.escape(user.getFullName()), ""), new LanguageWrapper("<strong><em>", HtmlUtil.escape(userLogin), "</em></strong>") }, false)); out.write("<br /><br />\n"); out.write("\t</div>\n"); out.write("\n"); out.write("\t"); out.print(LanguageUtil.format(pageContext, "if-you-are-not-x-logout-and-try-again", HtmlUtil.escape(user.getFullName()), false)); out.write('\n'); int evalDoAfterBody = _jspx_th_c_005fif_005f6.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_005fif_005f6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f6); return; } _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f6); } 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.portal.layout.edit.article_jsp.java
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null;/* w w w. j a v a 2 s. c o m*/ HttpSession session = null; 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'); /** * 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"); 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"); Layout selLayout = (Layout) request.getAttribute(WebKeys.SEL_LAYOUT); String currentLanguageId = LanguageUtil.getLanguageId(request); Locale currentLocale = LocaleUtil.fromLanguageId(currentLanguageId); Locale defaultLocale = LocaleUtil.getDefault(); String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale); Locale[] locales = LanguageUtil.getAvailableLocales(); out.write("\n"); out.write("\n"); out.write("<table class=\"lfr-table\">\n"); out.write("<tr>\n"); out.write("\t<td>\n"); out.write("\t\t"); if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context)) return; out.write("\n"); out.write("\t</td>\n"); out.write("\t<td>\n"); out.write( "\t\t<input class=\"lfr-input-text\" name=\"TypeSettingsProperties--article-id--\" type=\"text\" value=\""); if (_jspx_meth_bean_005fwrite_005f0(_jspx_page_context)) return; out.write("\" />\n"); out.write("\t</td>\n"); out.write("</tr>\n"); out.write("</table>"); } 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.portal.layout.edit.embedded_jsp.java
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null;/*w ww . j a v a 2 s .c o m*/ HttpSession session = null; 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'); /** * 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"); 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"); Layout selLayout = (Layout) request.getAttribute(WebKeys.SEL_LAYOUT); String currentLanguageId = LanguageUtil.getLanguageId(request); Locale currentLocale = LocaleUtil.fromLanguageId(currentLanguageId); Locale defaultLocale = LocaleUtil.getDefault(); String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale); Locale[] locales = LanguageUtil.getAvailableLocales(); out.write("\n"); out.write("\n"); out.write("<table class=\"lfr-table\">\n"); out.write("<tr>\n"); out.write("\t<td>\n"); out.write("\t\t"); if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context)) return; out.write("\n"); out.write("\t</td>\n"); out.write("\t<td>\n"); out.write( "\t\t<input class=\"lfr-input-text\" name=\"TypeSettingsProperties--url--\" type=\"text\" value=\""); if (_jspx_meth_bean_005fwrite_005f0(_jspx_page_context)) return; out.write("\" />\n"); out.write("\t</td>\n"); out.write("</tr>\n"); out.write("<tr>\n"); out.write("\t<td>\n"); out.write("\t\t"); if (_jspx_meth_liferay_002dui_005fmessage_005f1(_jspx_page_context)) return; out.write("\n"); out.write("\t</td>\n"); out.write("\t<td>\n"); out.write( "\t\t<textarea class=\"lfr-textarea\" name=\"TypeSettingsProperties--description--\" wrap=\"soft\">"); if (_jspx_meth_bean_005fwrite_005f1(_jspx_page_context)) return; out.write("</textarea>\n"); out.write("\t</td>\n"); out.write("</tr>\n"); out.write("</table>"); } 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.portal.layout.edit.link_005fto_005flayout_jsp.java
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null;/*from w w w . j a v a 2 s .co m*/ HttpSession session = null; 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'); /** * 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"); 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"); Layout selLayout = (Layout) request.getAttribute(WebKeys.SEL_LAYOUT); String currentLanguageId = LanguageUtil.getLanguageId(request); Locale currentLocale = LocaleUtil.fromLanguageId(currentLanguageId); Locale defaultLocale = LocaleUtil.getDefault(); String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale); Locale[] locales = LanguageUtil.getAvailableLocales(); out.write("\n"); out.write("\n"); out.write("<table class=\"lfr-table\">\n"); out.write("<tr>\n"); out.write("\t<td>\n"); out.write("\t\t"); if (_jspx_meth_liferay_002dui_005fmessage_005f0(_jspx_page_context)) return; out.write("\n"); out.write("\t</td>\n"); out.write("\t<td>\n"); out.write("\t\t<input name=\"TypeSettingsProperties--groupId--\" type=\"hidden\" value=\""); out.print(selLayout.getGroupId()); out.write("\" />\n"); out.write("\t\t<input name=\"TypeSettingsProperties--privateLayout--\" type=\"hidden\" value=\""); out.print(selLayout.isPrivateLayout()); out.write("\" />\n"); out.write("\n"); out.write("\t\t"); long linkToLayoutId = GetterUtil .getLong(selLayout.getTypeSettingsProperties().getProperty("linkToLayoutId", StringPool.BLANK)); out.write("\n"); out.write("\n"); out.write("\t\t<select name=\"TypeSettingsProperties--linkToLayoutId--\">\n"); out.write("\t\t\t<option value=\"\"></option>\n"); out.write("\n"); out.write("\t\t\t"); List layoutList = (List) request.getAttribute(WebKeys.LAYOUT_LISTER_LIST); for (int i = 0; i < layoutList.size(); i++) { // id | parentId | ls | obj id | name | img | depth String layoutDesc = (String) layoutList.get(i); String[] nodeValues = StringUtil.split(layoutDesc, "|"); long objId = GetterUtil.getLong(nodeValues[3]); String name = nodeValues[4]; int depth = 0; if (i != 0) { depth = GetterUtil.getInteger(nodeValues[6]); } name = HtmlUtil.escape(name); for (int j = 0; j < depth; j++) { name = "- " + name; } Layout linkableLayout = null; try { linkableLayout = LayoutLocalServiceUtil.getLayout(objId); } catch (Exception e) { } if (linkableLayout != null) { out.write("\n"); out.write("\n"); out.write("\t\t\t\t\t<option "); out.print((linkToLayoutId == linkableLayout.getLayoutId()) ? "selected" : ""); out.write(" value=\""); out.print(linkableLayout.getLayoutId()); out.write('"'); out.write('>'); out.print(name); out.write("</option>\n"); out.write("\n"); out.write("\t\t\t"); } } out.write("\n"); out.write("\n"); out.write("\t\t</select>\n"); out.write("\t</td>\n"); out.write("</tr>\n"); out.write("</table>"); } 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); } }