tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15084] New: - preloaded jsp's have their init method called again on first hit
Date Wed, 04 Dec 2002 20:50:01 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15084>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15084

preloaded jsp's have their init method called again on first hit

           Summary: preloaded jsp's have their init method called again on
                    first hit
           Product: Tomcat 4
           Version: 4.1.16
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: steve5m@yahoo.com


If you have a jsp with a jspInit method, and you preload
this jsp, the jspInit method gets called, as it should,
upon server startup. But now if you hit that jsp with your
web browser, Tomcat calls the jspInit method again.
(If you hit the jsp a second time, it's ok, doesn't call jspInit a third time.)
I will attach a war file that demonstrates this problem.
Simply load this application (test_app.war) and two pages
(preload1.jsp, preload2.jsp) each print out
that their jspInit methods are called.
Then hit the pages (http://host:port/test_app/preload1.jsp, etc.)
and see that they print out (to System.out) that their jspInit
methods are called once more.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message