aspose file tools*
The moose likes Servlets and the fly likes Passing request params from one servlet to another servlet running in different app s Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Passing request params from one servlet to another servlet running in different app s" Watch "Passing request params from one servlet to another servlet running in different app s" New topic
Author

Passing request params from one servlet to another servlet running in different app s

Paul Harris
Greenhorn

Joined: Feb 14, 2006
Posts: 7
How to pass request parameters from one servlet to another servlet ?
The servlets are running in different app servers.
Thanks
Simon Baker
Ranch Hand

Joined: Sep 09, 2004
Posts: 57
You would have to pass them as the query string of the URL.
Paul Harris
Greenhorn

Joined: Feb 14, 2006
Posts: 7
a lot of details need to sent and is also critical data
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
If you want to send some request parameter then its simple and can be done using HTTPURLConnection(Invoke your servlet using this and append a query string).

If you want to send request attributes then it would be something else..


Rahul Bhattacharjee
LinkedIn - Blog
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If you're doing a lot of this, you might want to consider a webservice engine like Apache Axis


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing request params from one servlet to another servlet running in different app s