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

Accessing property of different component in same application?

Hello,

I have a EP 6 portal application with several components.

I need some properties not only within the component but

also within different components.

I wonder if I have to administer these properties for

each component separately in portalapp.xml or if there

is a chance to access a property of a different component

by a e.g. servlet. I also thought of storing these

values in application-config section but I couldn't find

a way to access them.

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 15, 2004 at 01:47 PM

    Hello Hans,

    one, basic possibilty is to read out the file with ordnary XML-handling:

    basePath = componentRequest.getPrivateResourcePath();

    gives You the "basePath" that keeps the portalapp.xml

    load the XML wit the pathinfo: basePath + portalapp.xml.

    After this You can do Your XML-work. Maybe there is much smarter way...

    Walter

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Noël Hendrikx

      Noel, Walter,

      I did it using a bean and putting it in the httpsession

      as I thought of before.

      I provided you both a few point,

      Noel for this interesting feature (maybe I can use this

      for another problem) and Walter for the links.

      Thanks

      Hans

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.