This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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: 9291
    
  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
 
Similar Threads
unable to get response from payment website
how to print values on jsp page fetched from servlet
Posting one selected option value in two forms
how to use ONGL ?
Jamming javascript variable into the session