Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Indexed tags and form beans

Posts: 9
  • 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
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic