I have a JavaBean Array in the session scope which I can loop through in a scriptlet 
to output properties of each member of the array.
Example:
<%
SearchResultBean[] c = (SearchResultBean[]) session.getAttribute("results");

for (int x = 0; x < c.length; x++){
  out.println(c[x].getTitle());
  out.println(c[x].getDescription());
}
%>

What is the equivalent syntax for the above using the struts <logic:iterate> tag?

Thank You,
Brian
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3510.1100" name=GENERATOR></HEAD>
<BODY style="FONT: 10pt Tahoma; MARGIN-LEFT: 2px; MARGIN-TOP: 2px">
<DIV>I have a JavaBean Array in the session scope which I can loop through in a 
scriptlet to output properties of each member of the array.</DIV>
<DIV>Example:</DIV>
<DIV>&lt;%<BR>SearchResultBean[] c = (SearchResultBean[]) 
session.getAttribute("results");</DIV>
<DIV>&nbsp;</DIV>
<DIV>for (int x = 0; x &lt; c.length; x++){</DIV>
<DIV>&nbsp; out.println(c[x].getTitle());<BR>&nbsp; 
out.println(c[x].getDescription());<BR>}<BR>%&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>What is the equivalent syntax for the above using the struts 
&lt;logic:iterate&gt; tag?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank You,</DIV>
<DIV>Brian</DIV>
<DIV><BR>&nbsp;</DIV></BODY></HTML>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to