You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shakti Dalabehera <sh...@rediffmail.com> on 2003/10/22 12:51:32 UTC

Help Req !! How to use iterate tag to get a number of fields on jsp

Hi All Tech Gurus,
           I am newbie struts so asking this silly question . I am keeping some records in a HashMap like
	record[0]			=             voicemail ;
	record[1]			=	details	  ;
	....
	...
	Like this N number of records i have to put... for the key username
	map.put(username,record);

now in the jsp i have to show all the records in a table  ...
need help as how to exapand the record in the jsp .. currently i am using ..
<logic:iterate  id="myIterate" name="map" >
	
		<TR ALIGN="left" VALIGN="middle">
			   <td><bean:write  name="myIterate"  property="key"/></td>
			   <td><bean:write  name="myIterate"  property="value"/></td>	
	</logic:iterate>
now i want to know how to get the records ?? individually in the jsp ..so that i can print them in the format ..
USERNAME 	VOICEMAIL	DETAILS 	EMAIL		STATUS

Waiting for an early reply ...
Thanks & Regards,
Shakti ....