File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Redirecting to a page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Redirecting to a page" Watch "Redirecting to a page" New topic

Redirecting to a page

Aaron Webb

Joined: Aug 16, 2001
Posts: 17
What are some suggestions on sending to a JSP from a servlet. I have some data that is stored in the session that I am using for a user, but there is some data that just needs to be returned to the page. If it was just stored in the request that would be great but I don't want to use the RequestDispatcher as it screws up the URL and creates a lot of headaches when refreshing the page and such. On the other hand, response.sendRedirect() just redirects so I end up putting the beans in the session. Any other ways to do this?
subject: Redirecting to a page
It's not a secret anymore!