View final URL in Servlet RequestDispatcher forward
Posted on 2007-07-23
Im using Java servlets and Im using the following code to perform a forward:
RequestDispatcher rd = request.getRequestDispatcher(url);
My question is: How do I view the final url that the app is forwarding to? I want to see the url after any contexts or anything else has been pre-pended to it. I want to see where the app is actually being forwarded to.
For instance, if I pass in home.html as my url variable, how do I determine what the url variable will look like when RequestDispatcher gets finished with it?
Any help is greatly appreciated!!!
Ive been stuck on this for a while now....:(