Hello, I am new to Struts so I apologize if this problem has a simple answer but I couldn't find one in the archive.
Let's say I have a bean that contains several attributes, one of which is a Vector of Strings. This Vector has been populated from a database table and I want to present a checkbox for each item in the Vector. On the HTML form the user will select the items by checking the boxes they want. I want to do some processing based on what checkbox items they selected. Now my question: How do I get Struts to map the selected checkboxes into the Vector of my bean? As I understand it, Struts will use the get/set methods on the bean to retrieve/populate the bean from the form. But in this case I don't want to "set" the Vector, I want to "add" to the Vector for each selected checkbox. Each of my checkboxes will, of course, have a separate name but I definitely don't want to have a separate attribute in my bean for each because this is essentially look-up data that my end-user can modify at will. We certainly can't be adding attributes to our Java classes everytime the user adds a new entry to the database. I would assume that this is a common problem that others have had. How have you solved it? Aidan __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>