That will take care of the presentation side, true enough. But the problem I'm still trying to solve is how to deal with all the parameters when the form submission happens.
For instance, let's say I dynamically construct names for each drop-down along the lines of "dropdownXXXX" where XXXX is the skillID from the database... Since the number of skills could vary, it's not practical to have a getter/setter pair for each. So, logically, I'd want to use a collection, maybe an ArrayList for instance. However, somewhere along the line, some code has to realize "gee, all of these parameters that were submitted are related in a sense and need to be stuffed into this ArrayList over here". So, what will do that? Is there anything in Struts to do it now? If not, where do I need to write the code to do this? That's really the crux of my problem. Another posted mentioend the taglibs can construct such a name on the JSP side, and that's cool (except that I scorn the use of taglibs, but I could probably bring myself to do so here). That still, as far as I can see, doesn't answer how this variable list of parameters gets put into the ActionForm. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, September 30, 2004 1:38 pm, Bill Siggelkow said: > 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] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]