Request path elements of the original HTTP request may be accessed by the Portal request. The context path, servlet path and path info are obtained from the original request URI and exposed via the Portal request.
The following methods exist in the PortalServletRequest
to access this information:
getContextPath
getServletPath
getPathInfo
getPortalContextPath
getPortalServletPath
getPortalPathInfo
For example, suppose the Portal Context is set as follows:
Portal Context Path |
|
Portal Servlet Path |
|
Page Template Context Path |
|
Page Template Servlet Path |
|
In such a case, a request for /portal/myportal/home.jsp
results in the following path elements:
|
|
|
|
|
|
|
|
|
|
|
|