File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
WAS 4AE and Form based Authentication
Unable to forward page to login.jsp
Help with https implementation
LogOut.jsp
iframe problem not redirecting to another page