Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Paul Harris
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to pass request parameters from one servlet to another servlet ?
The servlets are running in different app servers.
Thanks
 
Simon Baker
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have to pass them as the query string of the URL.
 
Paul Harris
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a lot of details need to sent and is also critical data
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're doing a lot of this, you might want to consider a webservice engine like Apache Axis
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!