• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 problem -- s:hidden

 
Frank Serkland
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem resolved. Code rewritten like this:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic