Skip to Content
avatar image
Former Member

Accessing property options from within the masthead JSP

Hi,

I am trying to modify the masthead iView. What I would like to do is display information which can be set via the property editor of this iView (so that I do not have to redeploy a "modified-modified" iView when changing from a test/development- to productive Portal, but simply have to change the settings in the property editor).

However, the way I usually access this property option does not work from within this JSP page. I can define additional properties in the portalapp.xml and they are displayed and changable for my new masthead iView in the portal. But when I try to access this property from within the masthead JSP I get a "null" value (eg it is not set -- although I can see it in the property settings of this iView in the portal).

I do not know what the java class does which calls this JSP, but what I would guess is, that the componentRequest (which is available in the JSP) does only include the original property values, not my additional properties.

If anybody has any idea, please let me know!

Thanks for any help,

Holger.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 07, 2004 at 06:58 AM

    I think pure JSP portal applications are only meant for applications that do not need access to the portal infrastructure.

    The problem might be that you have a HttpServletRequest instead of IPortalComponentRequest (check the class of the request object).

    To get around it create a simple dynpage around the jsp and get the value before the jsp is shown, there are plenty of examples on sdn of this

    Add comment
    10|10000 characters needed characters exceeded