cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gentry, Michael \(Contractor\)" <michael_gen...@fanniemae.com>
Subject RE: accessing cayenne sessions
Date Tue, 04 Apr 2006 14:45:29 GMT
Yes, but using Tapestry you can have a common superclass for your pages
that provides a getSession() method and it works transparently.  You
don't need to think about Http*.

/dev/mrg


-----Original Message-----
From: Mike Kienenberger [mailto:mkienenb@gmail.com] 
Sent: Tuesday, April 04, 2006 10:26 AM
To: cayenne-user@incubator.apache.org
Subject: Re: accessing cayenne sessions


On 4/4/06, Cyp her <cypher6x@hotmail.com> wrote:
> * Are there any convenient methods for accessing the Session like in
> WebObjects where there is a session class in the application?

In servlets, there's an HttpSession object that you can pull out of
the HttpServletRequest.   Instead of being a subclassable object, it
instead holds references to a Map (think NSDictionary) where you can
store objects the entire session.  How you get a reference to your
HttpSession object depends on the framework.

http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/Http
Session.html

Mime
View raw message