File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts 2 hidden values 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 "Struts 2 hidden values" Watch "Struts 2 hidden values" New topic
Author

Struts 2 hidden values

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

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?


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
James Peter
Ranch Hand

Joined: Sep 15, 2010
Posts: 114
I changed the variable name and it is working for me.

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Struts 2 hidden values
 
Similar Threads
getting the path of input file
Question related to logic:iterate tag
how to pass Parameter in custom tag
Change to 2.2.1 causes forms to not submit to specific method anymore
form bean value not getting