Skip to Content
Former Member
Apr 05, 2006 at 01:07 PM

How to get URL to portal component?


Dear Experts,

I have the following question

I deploy par-file to portal with two components inside. I need to call one component from another via URL. How can I get URL of the component?

The simplest way to solve my problem is:

response.write("<a href="/irj/servlet/prt/portal/prtroot/<componentName>">link</a><br>n");

But I think it is not the best solution for such problem because "/irj/servlet/prt/portal/prtroot/" constant which may be changed in future.

Do you have any suggestion how to get relative (or absolute) URL of the current component?

Thanks many times,