aspose file tools*
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
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: 104
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: 104
Problem resolved. Code rewritten like this:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 problem -- s:hidden