This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes setting session variable in hidden control Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

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
 
Similar Threads
Jamming javascript variable into the session
unable to get response from payment website
how to use ONGL ?
Posting one selected option value in two forms
how to print values on jsp page fetched from servlet