aspose file tools
The moose likes Struts and the fly likes Struts 2 problem -- s:hidden Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts 2 problem -- s:hidden" Watch "Struts 2 problem -- s:hidden" New topic
Author

Struts 2 problem -- s:hidden

Frank Serkland
Ranch Hand

Joined: Jun 21, 2010
Posts: 96
I have a JSP form using Struts2, shown below. There is a hidden value in the form, for which I'm using s:hidden (it's marked below -- line 17), and Eclipse is telling me, "Invalid attribute(value)." I've checked the Struts2 documentation for s:hidden, and it says value is supposed to be a String, but I'm also under the impression that enclosing your requested value with ${..} converts that value to a String. (I'm trying to use an int, for the record.) Nothing else is giving me any problems. I've tried multiple Google searches to try and find an answer to this, to no avail. Does anybody have any ideas?

Frank Serkland
Ranch Hand

Joined: Jun 21, 2010
Posts: 96
Problem resolved. Code rewritten like this:

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Struts 2 problem -- s:hidden
 
Similar Threads
problem with struts2...
Could not find a Content-Type for upload in struts2
unable to do validation for select in struts2
Struts2 <s:form> includes empty <td>
struts2 tag ?