troubleshooting Question

View final URL in Servlet RequestDispatcher forward

Avatar of texastemplar
texastemplar asked on
Java EE
6 Comments1 Solution336 ViewsLast Modified:
Im using Java servlets and Im using the following code to perform a forward:

 RequestDispatcher rd = request.getRequestDispatcher(url);
            rd.forward(request, response);

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....:(

Thank you,
John
ASKER CERTIFIED SOLUTION
Mick Barry
Java Developer
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros