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:54:35 -0400
Delivered-to: mailing list users@cinjug.org
In-reply-to: <02CC1C69235CEC4CB50F7BEB0D7CCA97B633C0@napmail1>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Thread-index: AcSmWg8LAKlSWKaEQkmaTuXKx4OZYQAAG8BgAACcbmA=
Brian,

Here are a couple of things I had to do to deal with browsers and Tomcat in
order to make pages work. I suggest them so that you can try them
individually. I don't know if they will help or not. I can do very large
pages that take 5 minutes to draw.

I have this inside an included JSP to tell the browser to not do cache.

        response.addHeader("Pragma", "No-cache");
        response.addHeader("Cache-Control", "no-cache");
        response.addDateHeader("Expires", 1);

This tells the session to not time out too early.

        session.setMaxInactiveInterval((int)seconds);

Is it possible that the page is really getting sent and it is just taking
the browser a long time to draw what you have given it? If this is the case,
add the following attribute to the TABLE tag in HTML. You will have to make
sure that you can handle a fixed width table but it causes the browser to
start drawing even before all the data has been downloaded. It helps the
user see that something is happening.

        style="table-layout: fixed"

Good luck.

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

 

 


-----Original Message-----
From: Brian Engel [mailto:Brian.Engel@xxxxxxxxxxxx] 
Sent: Wednesday, September 29, 2004 3:32 PM
To: users@xxxxxxxxxx
Subject: RE: [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



---------
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>