It would depend how you constructed the HTML, but I'd suggest you'd have more luck with a List<String> which will just return all the ones that were checked (and you will have to determine what was omitted, as the "false" ones will never be sent).
An example of this used in Archiva can be found in the Redback source code that is merged in, in the AssignmentsAction.java and assignments.jsp Cheers, Brett On 31/08/2010, at 11:18 AM, Eshan Sudharaka wrote: > I have a implementation issue regarding > MRM-1399<http://jira.codehaus.org/browse/MRM-1399>. Here we are > supposed to display conflicting artifacts list which is a > dynamic one. Then by checking each one we can skip them being merged to > target repository. In order to do that we need to have boolean variables for > each artifact (in action class). since conflicting artifact list is a > dynamic list we cant follow that way. So I decided to have a Hash Map as > follows. > > HashMap <String , Boolean > conflictingArtifacts = new HashMap <String , > Boolean > ( ); > > String variable is consisting name space + group id + artifacts id + > artifacts version. And boolean variable use for set user's preference to > merging the artifact or not. By default i am going to set true for all > artifacts and change this boolean value when the user check on a specific > artifact in the jsp page. But it seems that normal setter method ( for the > hash map) is not invoking when user check an artifact. > > Here i want to know whether my approach is correct or wrong and Is there a > specific way to write a setter method for that. (in action class ) > > Thanks. > -- > > P.A.Eshan Sudharaka > Dept of Computer Science and Engineering > University of Moratuwa > Sri Lanka > http://esudharaka.blogspot.com/ -- Brett Porter [email protected] http://brettporter.wordpress.com/
