I'm sure there is a good way to handle this in Struts but me being the
dumbass I thought I'd ask for help:

Picture a case where you display a list of "jobs" -
where next to each job name is a checkbox (Just using jobs for this
example). Each checkbox corresponding to the job will have a value
that is a String (jobAbbreviation). Displaying this list of jobs and
the value of the checkboxes isn't a problem ( populated from an
ArrayList of JobObjects ).

The problem is:

How do I mark the correct checkboxes based on an ArrayList of
Strings (jobAbbreivations)? In other words I have just a List of Strings
and I need to mark all the appropriate checkboxes that have the same
values as this List of abbreviations. ( I know an ugly way to do it
using java in the JSP page checking each value to see if it's in the
List but there must be a cleaner way ).

Thanks so much for any help.

-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to