wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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="http://www.jstlbook.com" target="_blank" rel="nofollow">http://www.jstlbook.com</a>
It is sorta covered in the JavaRanch Style Guide.
subject: redirecting with jsp
Similar Threads
Processing icon with simple jsp approach
Why is this only specific to sessions?
refresh (update) JSP webpage when JMS notification is received
how we can get notification of an event listener at web browser
Notification sending in my project using JSP