You need a second logic:iterate (actually you should consider using JSTL
forEach but I guess that's just my preference :))

Keep in mind that I'm not testing this so you have to check the syntax etc.
     <logic:iterate  id="myIterate" name="map" >
        <td><bean:write  name="myIterate"  property="key"/></td>
        <logic:iterate  id="myIterateDetails" name="myIterate"
property="value">
             <td><bean:write  name="myIterateDetails"/></td>
        </logic:iterate>
     </logic:iterate>

Hope that helps
-Tim


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 5:35 AM
To: Struts Users Mailing List
Subject: Need Help : Iterate Tag



Hi All,
          I am keeping some user info in a hashmap where "uid" is the key &
the value is a vector which contains the rest of the user details .
can anyone tel me how to exapand the Vector in the jsp to fetch the
userdetails.

Using the folling code i am able to prrint the "uid" & the Vector object ..
but i am not able to make out how to expand the vector at jsp ???
Action class
     record         =   new Vector();
     record.add(some user details) ;
     record.add(some more user details)    ;
     map.put(uid ,record);
     request.setAttribute("map",map);
JSP
<logic:present name="map" scope="request">
     <logic:iterate  id="myIterate" name="map" >
                  <td><bean:write  name="myIterate"  property="key"/></td>
----> here i am getting the "uid"
                  <td><bean:write  name="myIterate"  property
="value"/></td> ---> but i am unable to get the userdetails from this
vector
     </logic:iterate>
</logic:present>
     </TABLE>

Any suggestions as how i shall proceed ...

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]

Reply via email to