Christian: If you just want some one way of doing this, you could set a session variable with the name of the servlet just before forwarding. The session var can then be accessed and read in the jsp.
Regards, Geeta Christian Ribeaud wrote: > Hi, > > I use the RequestDispatcher Object in an servlet. It forwards the request to a jsp. > In this jsp page, how to know where the request come from (what is the servlet's >name forwarding to the jsp)? Instead of getting the originally requested servlet, I >always get something related to the jsp: > > HttpUtils.getRequestURL(request); > request.getRequestURI(); > request.getPathInfo(); > request.getServletPath(); > > I would be very grateful if someone could help me. Thanks and have a nice day, > > christian > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
