In a non-nested context, you would do the following for a collection of
objects associated with the request object

<logic:iterate name="entryList"
           id="entry"
           scope="request"
           type="com.xxx.xxx.xxx.Entry">
  <tr>
    <td><html:text property="entry_subject" /></td>
    <td><html:text property="entry_text" /></td>
    <td><html:text property="entry_date" /></td>
  </tr>
</logic:iterate>





"Michael Delamere" <[EMAIL PROTECTED]> on 05/13/2002 01:00:42 PM

Please respond to "Struts Users Mailing List"
      <[EMAIL PROTECTED]>

To:   "'Struts Users Mailing List' \(E-mail\)"
      <[EMAIL PROTECTED]>
cc:
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]>






**********************************************************************
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**********************************************************************



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

Reply via email to