> use request.setAttribute("objectname",object)
> and then forward tojsp using
> RequestDispatcher
What is the difference between adding objects to the session and adding
objects directly to the request , with request.setAttribute() ? I mean , are
there any trade-off's involved here ?
regards
Pramod
----- Original Message -----
From: "M H Rao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 10:59 AM
Subject: Re: java bean
> use request.setAttribute("objectname",object)
> and then forward tojsp using
> RequestDispatcher
>
> bye
> MHRAO
> ----- Original Message -----
> From: "Ouyang, Jian" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 25, 2001 7:23 PM
> Subject: java bean
>
>
> > Hi,
> >
> > I want to know if I instantiate an object within the servlet, how to
pass
> it
> > to the jsp pages and if I instantiate an object in the jsp page, how to
> pass
> > it to the servlet? It seems that I need to set the object as an
attribute
> of
> > the request or session or something like that. Is it right.
> >
> > If I use servlet, do I need to use bean? or it is redundant? In other
> word,
> > is bean necessary when use JSP only?
> >
> > Thanks.
> >
> > Jian
> >
> >
>
___________________________________________________________________________
> > 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
___________________________________________________________________________
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