Skip to Content
author's profile photo Former Member
Former Member

Accessing property options from within the masthead JSP


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,


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.