Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RequestDispatcher - Impossible to forward to parent directory?

843841Jan 21 2004 — edited Jan 23 2004
I am using RequestDispatcher.forward() within a ServletFilter to redirect certain URLs.

This is excellent as long as the page I am forwarding to is in the same or a child directory, i.e. it can be specificed by /XXX.jsp or /dirName/XXX.jsp

However, I have a need to forward to ../XXX.jsp or even ../dirName/XXX.jsp. This does not appear to be possible, is it? I want to stay away from doing request.sendRedirect(), but is that my only solution?

Thanks so much,
Alan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2004
Added on Jan 21 2004
6 comments
287 views