File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes redirecting with jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "redirecting with jsp " Watch "redirecting with jsp " New topic

redirecting with jsp

Med Shabe
Ranch Hand

Joined: May 08, 2001
Posts: 84
Is there a relatively simple way to auto-redirect from one jsp to another?
Apparently doesn't work with jsp. I simply need to bring up a notification page when the user changes password, etc. and pass the new data along to the next jsp, while pausing in the notification page for a few seconds.
Thanks much for your help.
[ August 02, 2002: Message edited by: Med Shabe ]
Amit Roy
Ranch Hand

Joined: Oct 10, 2000
Posts: 132
try "response.sendRedirect("pagename.jsp")"

<I>Chance Favours the Prepared minds"</I>
Shawn Bayern
Ranch Hand

Joined: May 06, 2002
Posts: 160
Originally posted by Amit Roy:
try "response.sendRedirect("pagename.jsp")"

You can also use JSTL's <c:redirect> tag, which will handle session encoding for you (and normalize relative URLs, prepending the context path when necessary).

Shawn Bayern<br />"JSTL in Action" <a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: redirecting with jsp
It's not a secret anymore!