This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
LogOut.jsp
Help with https implementation
iframe problem not redirecting to another page
WAS 4AE and Form based Authentication
Unable to forward page to login.jsp