This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes sending parameters from one servlet to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "sending parameters from one servlet to another" Watch "sending parameters from one servlet to another" New topic
Author

sending parameters from one servlet to another

Ria Mathur
Greenhorn

Joined: Oct 11, 2001
Posts: 14
Is it posible to send request object and its parameters to another servlet, using response.sendRedirect() or something similar.
i have posted lot of data to the servlet, and the servlet needs to send some data to another servlet. It cannot be GET. How to do this?


-Ria
Ruud Steeghs
Ranch Hand

Joined: Jul 09, 2001
Posts: 56
use
RequestDispatcher dipatcher = request.getRequestDispatcher("nameOfYourServlet");
dispatcher.forward(request, response);
Cheers,
Ruud.
 
Have you checked out Aspose?
 
subject: sending parameters from one servlet to another
 
It's not a secret anymore!