How to display pre-checked checkboxes inside iterator in Struts 2
I need to iterate through List<String> , each element has s:checkbox . I have defined one list in Action layer to keep selected elements. Using my code I can submit my form and capture selected values in action layer. But, some of the checkboxes must be pre-checked. I cannot display pre- checked status when loading the page. Value1 contains list of String objects. functionCheckBoxList - The list I have defined to keep checked element While loading, I added some element to functionCheckBoxList that belongs to Value1 . But still does not show pre-checked status in the page. <s:iterator value=