*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sending parameters from one servlet to another
 
Similar Threads
Send Form info
Getting Java session from perl/cgi ..is it possible?
java fun
How to send
action forward to servlet