struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Sinha" <ashi...@kpitcummins.com>
Subject Re: Help Req on Iterate Tag using HashMap
Date Wed, 05 Nov 2003 15:15:12 GMT
Hi,

The following piece of code works fine with me. I use it to display data in
a drop down / select box.

              <html:select name="customerContactFormBean"
property="orgSeqId" onchange="javascript:showDistInformation()"
disabled="true">
              <html:option value=""><bean:message
key="select.default"/></html:option>
              <logic:iterate id="organization" collection="<%=((Map)
request.getAttribute(Constants.CUST_ORG_LIST_KEY)).values()%>">
              <html:option value="<%= ((CustomerOrganization)
organization).getSeqId() %>"><bean:write name="organization"
property="orgName"/></html:option>
              </logic:iterate>
              </html:select>

Regards,
Ashish.
[Povedu do bezkonechnostiu.]

----- Original Message -----
From: "Shakti" <shakti_simanta@hotmail.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>;
<RavipatiS@michigan.gov>
Sent: Wednesday, November 05, 2003 9:27 AM
Subject: Re: Help Req on Iterate Tag using HashMap


> 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" <RavipatiS@michigan.gov>
> To: <struts-user@jakarta.apache.org>
> 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
> >
> > >>> shakti_simanta@hotmail.com 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: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message