This content has been marked as final.
Show 3 replies
-
1. Re: Portal page name
apemberton Feb 5, 2009 6:06 PM (in response to vishalstudent123)You can use the following in a tag extending SimpleTagSupport:
PortalNode currentNode = (PortalNode) getJspContext().findAttribute("org.jboss.portal.api.PORTAL_NODE"); currentNode.getName(); currentNode.getDisplayName(locale);
Your PageCustomizerInterceptor stores the current PortalNode as a request attribute (unless you've modified it and chosen not to). -
2. Re: Portal page name
vishalstudent123 Feb 6, 2009 7:21 AM (in response to vishalstudent123)Thanks for the reply.
When I ran the code within a template it returned "null" for that attribute.
The only attributes that seem to be availible in the JSPContext are:{ javax.servlet.jsp.jspConfig=org.apache.catalina.core.StandardWrapperFacade@1e907d8, javax.servlet.jsp.jspResponse=GZIPResponseWrapper@65b968, javax.servlet.jsp.jspPageContext=org.apache.jasper.runtime.PageContextImpl@10edb20, javax.servlet.jsp.jspPage=org.apache.jsp.layouts._005ftemplate1.index_jsp@8498c6, javax.servlet.jsp.jspOut=org.apache.jasper.runtime.JspWriterImpl@b37fe0, javax.servlet.jsp.jspSession=platform.util.RootRequestFilter$SessionWrapper@6f830d, javax.servlet.jsp.jspRequest=org.jboss.portal.theme.LayoutDispatcher$1@1050840, javax.servlet.jsp.jspApplication=org.apache.catalina.core.ApplicationContextFacade@1225fb9 }
Any ideas?
Thanks -
3. Re: Portal page name
vishalstudent123 Feb 6, 2009 8:26 AM (in response to vishalstudent123)On this page:http://docs.huihoo.com/jboss/portal/2.6/reference-guide/html/themeandlayouts.html
In section 21.2.1.1. it says we need to register some Mbeans. Currently this file is the default one and dosn't point to the location of the layout jsps.
Is this the reason I cannot get values out?