Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting session variable in hidden control

 
Venkata Kumar
Ranch Hand
Posts: 110
Firefox Browser Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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



 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are sure that there is an attribute named MENUINDEX in your session, then try this
 
Girish Wakure
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic