This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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


Win a copy of Java 8 in Action this week in the Java 8 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
java fun
Getting Java session from perl/cgi ..is it possible?
action forward to servlet
Send Form info
How to send