Skip to Content

how toaccess ComponentA 's profile properties in ComponentB

hi all,

I have to Abstract Portal component A and B in my portal application

I want to access the profile properties of componentA in Component B

Can i access that and if yes, how to do it.?

Pls help me asap .

Thanks and Regards,

Siva

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 06, 2005 at 07:29 AM

    Hi Siva,

    In component A, write the following:

    IPortalComponentProfile profile = request.getComponentContext("myApplication.ComponentB").getProfile();

    response.write (profile.getProperty("myProperty"));

    Hope this helps.

    Daniel

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 08:14 PM

    See this:

    Accessing profiles of other components

    Regards,

    P.

    PS: Please consider awarding points from helpful answers.

    Add comment
    10|10000 characters needed characters exceeded