<logic:iterate id = "empHash" name = "beanName" property = "empDetailsAsHashMap"> <bean:define id = "empDetails" name = "empHash" property = "value" type = "yourpackage.EMPDetails" /> <TR> <TD> <bean:write name = "empHash" property = "key" /> </TD> <TD> <bean:write name = "empDetails" property = "dateOfJoining" /> </TD> <TD> <bean:write name = "empDetails property = "dateOfBirth" /> </TD> <TD> <bean:write name = "empDetails" property = "miscDetails" /> </TD> </TR> </logic:iterate>
You need to have respective Getter Methods in the EMPDetails Bean. On Wednesday 05 November 2003 02:57 pm, you wrote: > Thanks for your reply boss, > but still its doesn't solves my problem .. I know this method of iterating > thru an Array list taking out a bean from that .. but I want to USE A HASH > MAP ... > anyone who can help me out of this .... > waiting 4 ur reply guyz ......... > chao ... > shakti > > ----- Original Message ----- > From: "Sashi Ravipati" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, November 04, 2003 6:46 PM > Subject: Re: Help Req on Iterate Tag using HashMap > > > Hi > > > > This is how we iterate in a jsp page > > > > <table width="100%" border="0" cellpadding="0" cellspacing="1"> > > <logic:iterate id="sbList" name="addProviderForm" > > property="assocSBList" indexId="i" > > > <tr> > > <td><html:text name="sbList" property="sbBeginDate" maxlength="10" > > size="10" /></td> > > <td><html:text name="sbList" property="sbEndDate" > > maxlength="10"size="10" /></td> > > <tr> > > </logic:iterate> > > </table> > > > > where addProviderForm is the Struts Form bean and assocSBList is the > > ArrayList defined in the form bean. > > > > Hope this helps. > > > > Thanks > > > > >>> [EMAIL PROTECTED] 11/4/2003 6:43:27 AM >>> > > > > Hi All, > > I am keeping some table data in a HashMap . > > My Table is in this form : > > UID # EMP Details > > -Date of joining > > -Date of birth > > -Misc Detail > > > > Now i am creating an EMPDetails bean and storing the bean in a hash map > > with UID # as the key. > > > > Can anyone plz tell me how to show the data in a tabular form in jsp > > using iterate tag . I am unable to make out as how to > > iterate the EMPDetails bean which i am getting as value . > > > > Thanks & Regards, > > Shakti > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]