Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 30th, 2007, 11:24 PM   #1
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 139
Rep Power: 4 paulchwd is on a distinguished road
Question 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
paulchwd is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
servlet paulchwd Java 1 Jun 25th, 2007 9:02 AM
2 Loggers in the same Servlet.... tsofras Java 0 May 31st, 2007 10:40 AM
jsp & servlet tutorials bae Java 1 Feb 10th, 2006 11:41 PM
Cant connect servlet to MySQL DB BizzyC Java 0 Mar 8th, 2005 10:01 AM
Calling a C++ DLL in VB Floppie C++ 1 Feb 20th, 2005 1:08 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:19 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC