Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirecting with jsp

 
Med Shabe
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try "response.sendRedirect("pagename.jsp")"
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic