Hi ,
I need some help as how to expand my String array in in jsp For example
Test Action Class:
String username = regform.getUsername();
String voicemail = regform.getVoicemail() ;
String details = regform.getDetails();
String [] record = new String [2] ;
record[0] = voicemail ;
record[1] = details ;
// Forward this data to database & return back to index.jsp to login again
// Use MyUtils to update a table
// Store the temp date in that table
// Fwd the table to the view and display in the view ..
map.put(username,record);
request.setAttribute("map",map);
return (mapping.findForward("success"));
Test JSP
<logic:present name="map" scope="request">
<TABLE ALIGN="left" BORDER=1 CELLSPACING=0 CELLPADDING=1>
<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>
</logic:present>
Now in JSP i want to exapnd that record String array ... plz suggest any other DS as i
am completely new to struts .. started only 3 dayz back ...
so doing some ^c ^v work ...
Thanks ...
Shakti