aspose file tools*
The moose likes Struts and the fly likes setting session variable in hidden control Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "setting session variable in hidden control" Watch "setting session variable in hidden control" New topic
Author

setting session variable in hidden control

Venkata Kumar
Ranch Hand

Joined: Apr 16, 2008
Posts: 110

Hi All,

I am developing a struts2 web application. I want to access a session variable and set it as value of hidden control.
I tried both of the following statements independently and they are not working.




Am i doing anything wrong. How can i set session variable as hidden control value.

Thanks
Venkat




SCJP 5.0, SCWCD 5, preparing for SCDJWS
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

If you are sure that there is an attribute named MENUINDEX in your session, then try this


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Girish Wakure
Greenhorn

Joined: Apr 14, 2010
Posts: 28
Ankit Garg wrote:If you are sure that there is an attribute named MENUINDEX in your session, then try this


Thanks for Guidline. It helped me too in my project.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting session variable in hidden control