Somebody asked:
> > What is the correct way to call classes from a servlet?
> > Currently, I am just creating an object of a class and passing
> > arguments to it.  I have recently seen code out there that puts
> > objects into session objects.  What are the advantages to this and
> > is this more appropriate than the latter?

Andy Bailey writes:
> only need to store objects in an HttpSession object if you want to preserve
> them across requests.

Er, if you want to store them in a convenient user-specific place across
browser requests, you mean?  As opposed to servlet instance variables for
storing persistent, but generally shared objects.

Steven J. Owens
[EMAIL PROTECTED]
[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

Reply via email to