Hi Anshul,
Sorry to comment on your architecture. But why do U need a Servlet to send
mail. U can definitely make a nice Util class or method to do that.
Well, if U still wanna call another Servlet, U need to do it just like U
call it from an Applet. That is get a URLConnection & write your encrypted
GET or POST data. U ofcourse, read the response from the Servlet as well.
(Piece of Shit? :))
Rgds
Varma
>From: Anshul Jain <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: How to call a servlet from with in a servlet
>Date: Fri, 10 Mar 2000 14:18:56 +0530
>
>Hi All
>
>Does anybody know how to call a servlet from within a servlet.
>I have a main servlet A which establishes a database connection and
>retrieves names of some users. I have another servlet B which is a general
>purpose servlet used for sending mails.
>I want to call this servlet B from with in servlet A to send mail to the
>users retrieved in servlet A. Is there any way of doing it. Also I do not
>want to do it at the server level ie through servlet chaining.
>If possible pl. send the relevant code also.
>
>Anshul Jain
>
>___________________________________________________________________________
>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
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
___________________________________________________________________________
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