----- Original Message -----
From: "Jitin Narula" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
> how do i redirect from a servlet to another servlet depending on the
results
> from the database.
If you are thinking of an HTTP redirect which will result in the browser
issuing another request for the new page, you can use the method
res.sendRedirect()
If you want to send back the response from different servlets for the same
request, i.e. the URL in the browser will not change, you can use the
RequestDispatcher object's forward/include methods.
There is some excellent discussion and sample code relating to
RequestDispatcher by Geeta Ramani in the archives at
http://archives.java.sun.com/cgi-bin/wa?A2=ind0007&L=servlet-interest&P=R565
63
Regds,
Gokul
> Jitin Narula
> HCL TECHNOLOGIES LTD.
> A1CD,SECTOR-16,NOIDA - 201301(U.P.)INDIA
> Phone - 91-0118-4516321/28 EXT. - 1100.
> Fax - 91-0118-4516315
> E-Mail - [EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html