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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to include the respose of one servlet as request to another
 
Similar Threads
JSP - Database Pagination Implementation
Accessing servlet
Formatiing problem in EL
how to forward the result of a business login in servlet to the jsp
Send parameter using XMLHttpRequest