File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Indexed tags and form beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Indexed tags and form beans" Watch "Indexed tags and form beans" New topic

Indexed tags and form beans

Neil Richards

Joined: Jan 22, 2002
Posts: 9
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
I agree. Here's the link:
subject: Indexed tags and form beans
jQuery in Action, 3rd edition