Hi, the following is the code in action class //_________________________________________________ private List<AntibioticDto> antibiotics; private List<OrganismType> organismTypes; private Map<String, List<String>> oaMap; @Override public String execute() throws Exception { try{ antibiotics=dtService.getAllAntibioticsList(); organismTypes=dtService.getAllOrganisumTypes(); oaMap=dtService.getAllSelectedOrganismTypeAntibiotics(); }catch(Exception e){ log.error(e.getMessage(), e); return "error"; } return SUCCESS; } //_________________________________________________________
The following is the code in jsp <s:iterator value="antibiotics" status="status"> <tr><td><s:property value="antibioticName"/></td> <s:iterator value="organismTypes"> <td style="width:100px"><input type="checkbox" <s:if test="%{oaMap.[((new Integer(antibioticId).toString()))].contains((new Integer(organismTypeId).toString()))}">checked</s:if> value='<s:property value="antibioticId"/>' style="line-height: 35px;" /></td> </s:iterator> </tr> </s:iterator> //______________________________________________________________ i am trying to get the arrylist from the map and trying to check whether it contains a particular string but this is not working? is this the right way to do this? If not how to do this? *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*