Hey guys
This is the issue I have.
I have several apps running on different context.
Like the start pages would be :
http://localhost:8080/music/songs/start.do http://localhost:8080/movies/startMovie.do Now whenever I try to forward, it is always relative to the context.
Like from start.do, if I forward, it will always look inside
http://localhost:8080/music/songs/ Similarly from startMovie.do, if I forward, it will look in
http://localhost:8080/movies/ But what if I want to forward to a resource at the root level
http://localhost:8080/error.html I know I can do something like this from StartAction (start.do)
ActionForward forward = new ActionForward();
forward.setPath("../../error.html");
forward.setRedirect(true);
return forward;
And from startMovie.do
ActionForward forward = new ActionForward();
forward.setPath("../error.html");
forward.setRedirect(true);
return forward;
But this wont work. Because I wont know whether to use a ../ or a ../../
Isnt there a simple way to forward from the root level.
Thanks
Sarah