Frank,
Couldn't you create your <html:select> elements within <logic:iterate>? You would need to dynamically generate the name attribute using an a RTEXPR (or using html-el tags).
Also, LazyActionForm might help here ...
[EMAIL PROTECTED] wrote:
I have an interesting situation, one that has never come up before, and I'm unsure how to deal with it...
Imagine you have some records from a database representing various skills (i.e., HTML, Javascript, J2EE, etc.). Each has a SkillID associated with it.
You create a JSP that lists each skill with a drop-down next to it. The drop-down allows the user to select their skill level for each skill.
When the user hits Save, you need to update all the skills for that user.
That's the scenario. Here's the question... Each drop-down is given the name of the SkllID. But how do you write an ActionForm for that?
Since the database can be expanded to include new skills at any time, it's impractical to add getters and setters for each SkillID, and in fact breaks low coupling goals anyway.
Is there a standard way of accepting what kind of amounts to an array of inputs from a form and getting it into an ActionForm in some way (maybe as an ArrayList or something?).
TIA!
Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]