It works better if you call:

 "putValue" instead of "put"

and

 "getValue" not "get";

See apidoc for javax.servlet.http.HttpSession interface, wich does not
 extends Dictionary  (the one with .get(..), .put(..)... calls)

At least in JSDK 2.0.

Cezar

On Thu, 25 Mar 1999, Jeffrey R. Demi wrote:

> yes you can.
>  to get the object later type
>    Px_html  obj  = (Px_html) session.get("html")
> hope this helps
> jeff
>
> Revathy Ravi wrote:
>
> > hello everybody,
> > Can I put any object inside the session object?
> > for eg
> >
> >         session.put("html", Px_html);
> > where Px_html is a userdefined object.
> >
> >   Revathy R.
> >
> > ___________________________________________________________________________

___________________________________________________________________________
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