Declare a form bean with session scope associated with your action class and
forwarded to the JSP in struts-config.  Use your action class to set the
bean's properties and then access the lists with <iterate> and individual
properties with <bean:write>.

Mark

-----Original Message-----
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 4:01 PM
To: 'Struts Users Mailing List' (E-mail)
Subject: Getting a list from a session bean and displaying the data in a
jsp


Hi,

I�ve got a session bean which returns an Object[] array of entity beans.  In
my action file I get the array via a jndiContext.lookup.  That�s all no
problem and I can retreive my data out of the entity beans.

However, I�m slightly stuck getting them over to my jsp file.  I�ve tried

request.setAttribute("entryList", entryList);

and then outputing the data with:

<nested:iterate property="entryList">
  <tr>
    <td><nested:text property="entry_subject" /></td>
    <td><nested:text property="entry_text" /></td>
    <td><nested:text property="entry_date" /></td>
  </tr>
</nested:iterate>

Could someone give me an insight of how this is done.
I would be most grateful.

Thanks,

Michael


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


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

Reply via email to