Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 hidden values  RSS feed

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I have a jsp page in which I have defined a Struts hidden tag as follows.



I have an action which is called upon submit and the name attribute for this hidden tag is tied to a Model class which is prepared on submit of the form. Initially I want this to be false which is by default false. Now after my action executes, I set this value in my model to true. Now before the return SUCCESS in my action class, I set this property to true. But when I use a s:if tag to check for this value, it always is false. Any ideas?
 
James Peter
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed the variable name and it is working for me.

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!