3 Replies Latest reply on Feb 6, 2009 8:26 AM by Vishal Bhanderi

    Portal page name

    Vishal Bhanderi Newbie

      Hi Guys,

      Im using portal version 2.6.3 (JSR 168), and i'm trying to find the portal page name. As i'm working in a tag for the jsp, i only have access to (HttpServletRequest) and (HttpSession). I can't find anything in the API.

      Is it possible?

      Thanks.

        • 1. Re: Portal page name
          Andy Pemberton Newbie

          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
            Vishal Bhanderi Newbie

            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
              Vishal Bhanderi Newbie

              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?