Accessing Session(HttpSession) element in form-widget

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Accessing Session(HttpSession) element in form-widget

Bhupendra
Hello,
I want to access session attributes from the form-widget. Can anyone throw lights on this?

I am setting session attributes through groovy. I don't want to use FTL.

Thanks
Bhupendra.

________________________________
http://www.mindtree.com/email/disclaimer.html
Reply | Threaded
Open this post in threaded view
|

Re: Accessing Session(HttpSession) element in form-widget

Harmeet Bedi
it can be obtained from context.
I don't remember the exact path.. but this line in your groovy may help:

context.each { key, value -> println "context> ${key} : ${value.getClass().getName()} : ${value}" }

Note you can get session from http request in case you see request but not session.

Harmeet

----- Original Message -----
From: "Bhupendra Shivade" <[hidden email]>
To: [hidden email]
Sent: Thursday, July 23, 2009 10:58:25 AM GMT -05:00 US/Canada Eastern
Subject: Accessing Session(HttpSession) element in form-widget

Hello,
I want to access session attributes from the form-widget. Can anyone throw lights on this?

I am setting session attributes through groovy. I don't want to use FTL.

Thanks
Bhupendra.

________________________________
http://www.mindtree.com/email/disclaimer.html