This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Servlets and the fly likes Parameter passing between servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Parameter passing between servlets" Watch "Parameter passing between servlets" New topic
Author

Parameter passing between servlets

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi
I am using a servlet that is needs to call another servlet. I can't just use a java class because the called servlet will be using the response writer directly. I am using a dispatcher object to run the called servlet. Before I do this i want to add a parameter to the request object. Is there any way to do this? Should i just add these on to the url of the request dispathcer object? Any help in this matter would be greatly appreciated.
Jeff
janders@nationallife.ca
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Parameter passing between servlets