aspose file tools*
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.
 
Don't get me started about those stupid light bulbs.
 
subject: sending parameters from one servlet to another