Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Struts 2 problem -- s:hidden

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

 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!