Or use request.setAttribute(name, value) before calling include or
forward. The called code then calls request.getAttribute(name) to get
the passed data.
Rod McChesney, Korobra
Scott Sanders wrote:
>
> > Thanks. I found the documentation regarding RequestDispatcher. But how
> > will I pass a data object to the second servlet since the include
> > and forward functions only has ServletRequest and ServletResponse
> > as parameters? My first servlet would like to process some of the
> > data and send the resulting data object to the second servlet.
> > Any suggestions? Thanks.
>
> Why not add it as a session object?
>
> Scott
>
> ___________________________________________________________________________
> 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
___________________________________________________________________________
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