Two Laptop Bag*
The moose likes Struts and the fly likes Struts 2 problem -- s:hidden Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
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: 103
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: 103
Problem resolved. Code rewritten like this:

 
 
subject: Struts 2 problem -- s:hidden
 
Similar Threads
unable to do validation for select in struts2
Struts2 <s:form> includes empty <td>
struts2 tag ?
Could not find a Content-Type for upload in struts2
problem with struts2...