cancel
Showing results for 
Search instead for 
Did you mean: 

Get portal alias programatically

Former Member
0 Kudos

Hi experts,

We are working with Sap Netweaver Portal 7.3 sp7 and configure the SRM BP, all works fine. We share the portal with the HCM team.

We create a portal alias call "srm", and based on this portal alias have a different desktop etc, etc. The requirement of the client is based on this portal alias, the logon page have to load different images and texts. We know how to modify the logon page, but we dont know how to take the portal alias.

We cannot take part of the url, because the portal will be publish in the internet with an url pointing to the portal alias and there is a webdispatcher in the dmz etc.

¿Is there any way to know the portal alias programatically?

King regards,

Manuel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

thanks all for your replies. Finally i get the value of the portal alias in the logon page in this way:

String portalAlias = (String) request.getAttribute("PortalAlias");

Regards,

Manuel

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Is this what you are looking for ?

request.getRequestURI()

Cheers!!

hofmann
Active Contributor
0 Kudos

The standard way to know which alias is used when accessing the portal is to read the PortalAlias cookie.

Former Member
0 Kudos

The use of WD will not hide the URL Alias, I don't see any reason why you couldn't parse the URL.