Hi Atul,

I am guessing that you are trying to transfer control to another servlet by
using RequestDispatcher.forward call or trying to include the output of
another servlet by using RequestDispatcher.include.

You can use request.setAttribute("dataMemberName", dataMemberValue) from
your servlet A and retrieve that data member from servlet B by using
request.getAttribute("dataMemberName", output of which must be type casted
to the type of the dataMemberName. Hope this helps. Please let us know.

Thanks!!
Amalendu


>From: Atul Deshpande <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Interservlet Communication...
>Date: Mon, 20 Nov 2000 15:00:06 +0200
>
>Hi all,
>
>Is is possible to pass a value of data member of servlet A, as an
>argument to another servlet B to invoke a method in it.
>Both the servlets are in the same servlet context & loaded.
>
>When we invoke method on another servlet B, it accepts parameters such
>as (Servlet name, array of type identifiers).
>
>Please do reply.
>
>Thanks & regards,
>
>- Atul
>
>___________________________________________________________________________
>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 more from the Web.  FREE MSN Explorer download : http://explorer.msn.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

Reply via email to