 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Patrick Phelan Guest
|
Posted: Fri Aug 20, 2004 2:27 pm Post subject: Struts, partial/immediate page return |
|
|
Problem: I've got a Struts/JBoss web app that returns pages in about the
same time as a Progress/4GL web app. However, the 4GL begins returning
data immediately, so that the user sees the top part of the page in 1-2
seconds. The Struts Action->JSP means that nothing is returned until all
the data is ready, which is a 4 second wait. The Java is occasionally
faster, according to total page load times, but the user experience is
that the Java is much slower because the user spends too long staring at
the old screen. The application is already as fast as it is going to
get, and while the database is slow, I can't do anything about it until
I completely replace the 4GL app, an event currently scheduled for 2012.
Anybody else face a problem like this? I'd most like to add something to
a Filter to return enough to render at least a blank page, but IE takes
this to be the entire page, and never loads the actual content. If not
that, then an intermediate page. I can see a lot of problems with that
one, though.
I'm also considering Javascript to wipe out the target window or do
something eye-catching. Anybody have experience with putting Javascript
to wipe out the target window into a taglib?
I'm more than willing to consider template-style engines (including
spSpace, my own half-finished creation), but the bosses never seem to
take my word for anything, especially when the high-priced architect
came up with Struts. Anybody have any speed-focused benchmarks I could
use as evidence?
--
Patrick Phelan
w____\W//___w Te Hupenui
If you look deeply into the jello you will see him,
but by then it will be much too late.
http://mysite.verizon.net/fantod/
|
|
| Back to top |
|
 |
RobM Guest
|
Posted: Sat Aug 21, 2004 12:36 pm Post subject: Re: Struts, partial/immediate page return |
|
|
"Patrick Phelan" <fantod (AT) geocities (DOT) com> wrote
| Quote: | Problem: I've got a Struts/JBoss web app that returns pages in about the
same time as a Progress/4GL web app. However, the 4GL begins returning
data immediately, so that the user sees the top part of the page in 1-2
seconds. The Struts Action->JSP means that nothing is returned until all
the data is ready, which is a 4 second wait.
[...snip...]
--
Patrick Phelan
http://mysite.verizon.net/fantod/
|
Patrick - just a quick thought - would lessening the JSP or servlet output
buffer size help? Doesnt that flush and send out to the browser when it gets
full?
Unless its something else - e.g. you're painting the page from a resultset
into a string (or struts does), not the <%=pageArea%>
Cheers
Rob
|
|
| Back to top |
|
 |
Patrick Phelan Guest
|
Posted: Sun Aug 22, 2004 1:36 pm Post subject: Re: Struts, partial/immediate page return |
|
|
[RobM]:
| Quote: | Patrick - just a quick thought - would lessening the JSP or servlet output
buffer size help? Doesnt that flush and send out to the browser when it gets
full?
|
Possibly I am doing this incorrectly, but it calls the Struts Action
class before it ever calls the JSP. Given that all the slow SQL
statements are in the Action, by the time it gets to the JSP, it is
already too late. It did help to put an <% out.flush(); %> at the top,
but only by the few milliseconds it takes to generate the page.
| Quote: | Unless its something else - e.g. you're painting the page from a resultset
into a string (or struts does), not the <%=pageArea%
|
This is similar to what it does, except that it fetches data into a
Form, which the JSP uses. It would help if I moved more code into the
JSP, but this would seem to be fighting the Struts concept.
I can think of a lot of solutions that involve large code changes, but I
thought I'd look for a simple fix first.
--
Patrick Phelan
w____\W//___w Te Hupenui
Jaundiced Outlook
http://mysite.verizon.net/fantod/
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|