Re: sessions in cocoon

2002-05-29 Thread Ivan Luzyanin

On óÒÄ, 2002-05-29 at 17:05, Atul Gulve wrote:
> If you want to access session object then you should do it following way in 
> cocoon.
> 
> In your xsp file you can access the session.
> 
> org.apache.cocoon.environment.http.HttpSession session = 
> (org.apache.cocoon.environment.http.HttpSession)request.getSession();
> 
> Object foo = session.getAttribute("foobar");
> .
> .
> .
> .
> 

Actually is no need to get session object from request object. Session
object is ready to use from XSP's by using "session" variable.




Object foo = session.getAttribute("foobar");




Ivan.


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: sessions in cocoon

2002-05-29 Thread Atul Gulve

If you want to access session object then you should do it following way in 
cocoon.

In your xsp file you can access the session.

org.apache.cocoon.environment.http.HttpSession session = 
(org.apache.cocoon.environment.http.HttpSession)request.getSession();

Object foo = session.getAttribute("foobar");
.
.
.
.



From: "Christoph Stocker" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: sessions in cocoon
Date: Wed, 29 May 2002 15:35:21 +0200

hi!

can someone give an example to implement session-handling or tracking
in cocoon.

greetings, chris


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: sessions in cocoon

2002-05-29 Thread Ivan Luzyanin

On óÒÄ, 2002-05-29 at 16:35, Christoph Stocker wrote:
> hi!
> 
> can someone give an example to implement session-handling or tracking
> in cocoon.
> 
> greetings, chris
> 
there are some small examples in Cocoon API documentation for session
handing and tracking (i.e. SessionIsValidAction, SessionValidatorAction,
SessionStateAction)

P.S. You can find Cocoon API documentation in distribution package.


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




sessions in cocoon

2002-05-29 Thread Christoph Stocker

hi!

can someone give an example to implement session-handling or tracking
in cocoon.

greetings, chris


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>