users
[Top] [All Lists]

RE: [cinjug-users] Struts Logic Tag Question

To: <users@xxxxxxxxxx>
Subject: RE: [cinjug-users] Struts Logic Tag Question
From: "Brian Engel" <Brian.Engel@xxxxxxxxxxxx>
Date: Wed, 29 Sep 2004 15:31:43 -0400
Delivered-to: mailing list users@cinjug.org
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Thread-index: AcSmWg8LAKlSWKaEQkmaTuXKx4OZYQAAG8Bg
Thread-topic: [cinjug-users] Struts Logic Tag Question
It appears to be something going on with the size of the page. If I removed 
text from the top of the page, it is able to process further into the page. 

The size is 4466. 

I am getting the feeling that this isn't the fault of the logic tablib but 
something going on with Tomcat. 

If I were to use JSTL I suppose I would use a forEach tag to iterate over the 
collection?
 

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

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. 
 
 



---------
You may unsubscribe from this mailing list by sending a blank email addressed 
to:
users-unsubscribe@xxxxxxxxxx

--
Find additional help by sending a blank email addressed to:
users-help@xxxxxxxxxx



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