users
[Top] [All Lists]

RE: [cinjug-users] Struts Logic Tag Question

To: <users@xxxxxxxxxx>
Subject: RE: [cinjug-users] Struts Logic Tag Question
From: "Robert Casto" <robert@xxxxxxxxxxxxx>
Date: Wed, 29 Sep 2004 15:25:11 -0400
Delivered-to: mailing list users@cinjug.org
In-reply-to: <000401c4a658$5213d1e0$d850058f@carmani600m>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Thread-index: AcSmWHhek+TYu0meTZaep7lLLYOWzwAAWRHg

James,

 

I understand the suggestion to switch, but most of the time people can not do that. It would introduce something new to the server environment and thus would be rejected as a possible solution.

 

I think the better option is to help Brian do what it is he is trying and then recommend another way of doing it.s

 

Robert Casto
Phone: 513-755-2221
Mobile: 614-406-7979
robert@xxxxxxxxxxxxx

 

 


From: James Carman [mailto:james@xxxxxxxxxxxxxxxxxxxx]
Sent: Wednesday, September 29, 2004 3:13 PM
To: users@xxxxxxxxxx
Subject: RE: [cinjug-users] Struts Logic Tag Question

 

Switch to JSTL for logic/iterating.  It’s much cleaner and more robust.

 

-----Original Message-----
From: Brian Engel [mailto:Brian.Engel@xxxxxxxxxxxx]
Sent: Wednesday, September 29, 2004 3:09 PM
To: users@xxxxxxxxxx
Subject: [cinjug-users] Struts Logic Tag Question

 

I am having a strange problem I can't seem to get to the bottom of...

 

Basically I have a bean that contains a Vector of "UserData" objects. I am simply trying to iterate thru them and display all of the data.

 

The problem is the page just seems to quit processing when it makes it about 10 names from the bottom. It doesn't seem to matter how many objects (users) are in the Vector.

 

i.e. my JSP looks like this.

 

<logic:iterate id="userData" name="UserDataForm" property="names" >

<tr>

<td>

<jsp:getProperty name="userData" property="lastName" />

</td>

<td>

<jsp:getProperty name="userData" property="firstInitial" />

</td>

<td>

<jsp:getProperty name="userData" property="city" />

</td>

<td>

<jsp:getProperty name="userData" property="state" />

</td>

<td>

<jsp:getProperty name="userData" property="winDate" />

</td>

</tr>

</logic:iterate>

 

The page just quits processing towards the very end of the user list. It doesn't seem to matter if there are 4000 or 250 names (objects) that it iterates over - it just stops and returns the page incomplete.

 

Hope this makes sense - BTW I am using Tomcat as the app server.

 

I'd appreciate any help you can offer.

 

 

<Prev in Thread] Current Thread [Next in Thread>