You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Micael <ca...@harbornet.com> on 2003/04/13 09:18:05 UTC
CODE -- Sigh!
Sorry about the prior mess -- the road to hell, and all that.
ADD OBJECTS TO SCOPE:
request.setAttribute("yourchoice", hashtable);
request.setAttribute("aname", vector);
request.setAttribute("mymap", map);
WRITE VALUES TO JSP PAGE
Vector <%= vector %><br><br>
<logic:iterate id="options" name="aname">
NAME: <bean:write name="options" property="name"/><br>
PASSWORD: <bean:write name="options" property="password"/><br>
</logic:iterate>
<br><br>Hashtable <%= hashtable %><br><br>
<logic:iterate id="anything" name="yourchoice">
Next element3 is <bean:write name="anything" property="key"/><br>
Next element4 is <bean:write name="anything" property="value"/><br>
</logic:iterate>
<br><br>Map <%= map %><br><br>
<logic:iterate id="something" name="mymap">
Next element5 is <bean:write name="something" property="key"/><br>
Next element5 is <bean:write name="something" property="value"/><br>
</logic:iterate>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org