Hey, the advice was free! :-) I can put you on my Premium Support Plan if
you want a different answer than that. Just kidding. I just love JSTL and
I think it would save a lot of people a LOT of headaches when trying to use
the Struts logic libraries. Also, the logic libraries in Struts are
somewhat "deprecated."
Anyway, I would need to see some printouts of what's going on here. Maybe
print out the value of UserDataForm.getNames().size() in your Struts action?
That might be one starting point.
-----Original Message-----
From: Robert Casto [mailto:robert@xxxxxxxxxxxxx]
Sent: Wednesday, September 29, 2004 3:25 PM
To: users@xxxxxxxxxx
Subject: RE: [cinjug-users] Struts Logic Tag Question
-->
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.
|