aspose file tools*
The moose likes Servlets and the fly likes how to include the respose of one servlet as request to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to include the respose of one servlet as request to another" Watch "how to include the respose of one servlet as request to another" New topic
Author

how to include the respose of one servlet as request to another

praveen kumar gowda
Greenhorn

Joined: Feb 20, 2012
Posts: 23
hi guys...

i have a servlet which adds two number.....now i want to send that result to the another servlet which takes the result and need to multiply with some other number

please help in this...
Prasad Krishnegowda
Ranch Hand

Joined: Apr 25, 2010
Posts: 510

You can send it as a request parameter..


Regards, Prasad
SCJP 5 (93%)
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

but why does it need to go to another servlet anyway?
If all your servlet does is handle the inputs and outputs from the form (like it should do), and you have other java classes doing all the actual work (like you should do),
you can just call the java classes that servlet 2 would be calling, and return from servlet 1.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to include the respose of one servlet as request to another