Hi, I am sure there is an answer to this one but i have not been able to find out. I have a servlet registered as xxx from which i forward to some jsp page /yyy/zzz.jsp How can i get the original xxx Servlet name in the zzz.jsp I have tried the Referer in the header, the request URI, the Servlet name in the request and the Path Info. None of these have worked as all return /yyy/zzz.jsp Any Help will be greatly appreciated TIA S
it shouldn't matter which servlet they came from the jsps point of view. Jsp shouldn't handle conditional logic, or if it does, it should be limited to just presentation as much as possible. Having said that, you could use request.getRequestURL() (see the javadoc for HttpServletRequest).