Hi

i have a hashtable in which i has been used the arraylist as the value and string as a 
key.

----
Hashtable artists=new Hashtable();
ArrayList titles=new ArrayList();
String cast="Pahwa";
titles.add(new A("shashi","bhushan"));
titles.add(new A("vijay","kumar"));
artists.put(cast,titles);
cast="Dua";
titles.add(new A("sunil","kumar"));
artists.put(cast,titles);
pageContext.setAttribute("artists",artists,PageContext.PAGE_SCOPE);
and
i has been used this one for show the records

<logic:iterate id="hash" name="artists" indexId="index" >
         Artist: <li><bean:write name="hash"  property="key" /></li>
   <logic:iterate id="array" name="hash" property="value" >
     <bean:define id="a" name="array"/>
    <li><bean:write name="a" property="name" /></li>
    <bean:write name="a" property="value" />
   </logic:iterate>
</logic:iterate>

but it fill give a wrong result.

Please help me

Thanks

Shashi

Reply via email to