This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Indexed tags and form beans

 
Neil Richards
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement for users to update multiple rows at the same time. My problem is that the form bean I get in my action class
does not accurately represent the html form that is submitted. In the example below, the bean's headerId and personsCode elements
are sometimes null when they always contain a value in the html, and the destination radio button element has a value in the bean in many cases even if it has not been selected.
I've used <logic:iterate> and the indexed attribute, to generate the HTML:

which gives me ...

My form bean looks like this:

and the relevant bits of struts-config.xml ...

Could someone please tell me where I've gone wrong - or let me know if there's a better way of doing it ?
Many thanks,
Neil Richards
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic