This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Indexed tags and form beans" Watch "Indexed tags and form beans" New topic
Author

Indexed tags and form beans

Neil Richards
Greenhorn

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: http://aspose.com/file-tools
 
subject: Indexed tags and form beans
 
Similar Threads
Problem Passing Parameter values to action
Problem in hiding the row of data
performance issue with large collections of data
bean value persists on clicking back
How to catch checkbox value