cancel
Showing results for 
Search instead for 
Did you mean: 

URL of the requesting page

Former Member
0 Kudos

Hi,

Is is possible to get the URL of the requesting component?

Lets say http:
xyz:50000\irj\logon calls portal component with url http:
....I would like to get the url http:
xyz:50000\irj\logon in the called component.

Thanks,

Suparna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Daniel,

I have a form tag on the requesting page and the action of the tag calls the requested component.

Thanks,

Suparna

thecodester
Developer Advocate
Developer Advocate
0 Kudos

Hi Suparna,

Can you use the Referer property of the Http request object:

request.getServletRequest().getHeader("Referer");

Does this give you the info you need?

Hope this helps.

Daniel

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Daniel,

Thanks a lot!!! I worked for me!!

Thanks,

Suparna

Former Member
0 Kudos

Hi Harish,

This returns the url of the component.

Thanks,

Suparna

thecodester
Developer Advocate
Developer Advocate
0 Kudos

Hi Suparna,

How are you making the call? Adding a POM node and then including it in the response? doNavigate()? Or something else?

Daniel

Former Member
0 Kudos

Hi,

Can you try , if the following works,

request.getServletRequest().getRequestURL()

Regards,

Harish

(Please award points for helpful answers)