jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes redirecting to an other page problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "redirecting to an other page problem" Watch "redirecting to an other page problem" New topic
Author

redirecting to an other page problem

richard koch
Greenhorn

Joined: Aug 09, 2001
Posts: 5
hi,
when trying your examples or trying to make an example of my own, i seem to can not get the
response.sendRedirect(response.encodeRedirectURL("www.google.com"));
to work correctly.
the problem:
project xxx
Web
index.html
secure
login
login.jsp
hallo.jsp
mainmenu
mframes.html
logo.jsp
....
.....
WEB-INF
classes
com
utilities
tree
treeview.class
....
....
i start with login.jsp (a session is created) and perform an "response.sendRedirect("hallo.jsp");" and that works.
on the page "hallo.jsp" i try to go after the submit button was pressed to "mainmenu/mframes.html" with an
response.sendRedirect("/secure/mainmenu/mframes.html");
and that doesn't work. after pressing submit i am always returned to the "login.jsp". this is also the case if i choose to goto "logo.jsp".
what am i doing wrong?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: redirecting to an other page problem