I have a problem to get the calling URL
,
For example, I call "www.xyz.de/abc"
, the urlrewite.xml
change it to "www.xyz.de/test.jsp"
to call the correct JSP
.
In the bean, I want to get the calling URL
"www.xyz.de/abc"
Here's my code:
HttpServletRequest httpServletRequest = (HttpServletRequest)
FacesContext.getCurrentInstance().getExternalContext().getRequest();
String url = httpServletRequest.getRequestURL().toString();
Can somebody help, how I get the calling URL
?