RequestDispatcher - Impossible to forward to parent directory?
843841Jan 21 2004 — edited Jan 23 2004I 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