![]() |
calling one servlet from another servlet
Hi,
I have 3 servlets: one to enter an invoice one to print out the invoice fields from the DB to the screen and one to search for an invoice You can access the middle one one of two ways: after you create a servlet it calls the show servlet (#2) to print out the invoice to the screen or you can search for an invoice and then that servlet calls the show servlet My question to you is : if i am calling one servlet from another... how do I do it ? Do i call the servlet's doPost() / doGet() method and send it the request and response object (so Make servlet sends show servlet its (Make servlet's) request and resposne objects ?) or Do I create new (blank) request / response objects and send them to the doPost () /doGet() Thnx |
| All times are GMT -5. The time now is 2:52 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC