| 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: 503
|
|
|
You can send it as a request parameter..
|
Regards, Prasad
SCJP 5 (93%)
|
 |
Wendy Gibbons
Bartender
Joined: Oct 21, 2008
Posts: 1098
|
|
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.
|
 |
 |
|
|
subject: how to include the respose of one servlet as request to another
|
|
|