Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

How to use session in velocity using struts2

Ramesh R

2008-09-18


Author LoginPost Reply
Hi,

I have implemented SessionWare method in my action class. I am able to get
the session variables in the action. But am not able to get in velocity;

I have set user object to session like this.
*session.put("USERS",users);*

when i print *session.get("USERS")*, i am able to get the values.

In velocity am using it like this. But its not printing the values.
*$session.get("USERS");

*when i print the session object as
$session its printing like
this.*org.apache.catalina.session.StandardSessionFacade@(protected)
*

please guide on this.

--
cheers !!

ramesh r
©2008 gg3721.com - Jax Systems, LLC, U.S.A.