tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: Why is my page repeatedly invoking itself?
Date Thu, 12 Feb 2009 11:20:52 GMT
Use Firefox + LiveHttpHeaders and discover that the page is probably
being invoked many times (probaly due to a bad image tag or other media
asset)

-Tim

Jonathan Mast wrote:
> Here's my setup:
> Java 1.4.2
> Tomcat 5.5.17
> Windows XP
> I'm developing in NetBeans 6.5 (which is invoking Tomcat)
> 
> The page just reads from a database and stuffs the results into a table.
> 
> I noticed that the page was taking forever to load, so i placed logging
> statements in it, at the beginning of the page (before the db is accessed)
> and in the middle (where the results are unrolled into a table).  Upon
> looking at the log file i could see that the page was being invoked hundreds
> of times.  There is no pattern discernible from the log file, the entries
> are mostly like this:
> begin page
> print row
> print row
> print row
> print row
> begin page
> print row
> print row
> begin page
> 
> and so on, no real pattern.
> 
> Despite being invoked (or whatever) hundreds of time, the page looks alright
> once it finally finishes, which i find rather strange.
> I've done many pages like this, some of are much more complex and they all
> work fine.
> And I know its not a problem with the DB api, i created a test page that
> calls the exact same method, unrolls the returned array and does a println
> for each item, and it works fine.
> 
> any help would be appreciated
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message