Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic