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 5390] New: - jsp-file and load-on-startup and init-param does not work.
Date Wed, 12 Dec 2001 20:09:24 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=5390>.
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=5390

jsp-file and load-on-startup and init-param does not work.

           Summary: jsp-file and load-on-startup and init-param does not
                    work.
           Product: Tomcat 3
           Version: 3.3 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Webapps
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mike@ds808.net


The following code in the web.xml does not fire up the jsp on startup.  In the 
web.dtd, it states:

<!-- The servlet element contains the declarative data of a
servlet. If a jsp-file is specified and the load-on-startup element is
present, then the JSP should be precompiled and loaded. -->

No matter what I did, tomcat would not compile and load the jsp on startup.  I 
have an jspInit() method in the jsp which grabs the init parmameters and 
nothing happens.  I notice in the logs that the "LoadOnStartupInterceptor: 
Initializing JSP with JspWrapper" is invoked but nothing happens.  No compile 
is done until I call it manually with a browser.  And even when I do, the 
jspInit method fires but there are no config.getInitParameter("param1") there?  
Please advise.  Thank you.  I noticed there is a bug id 4518 with a similar 
problem, but that was for tomcat 4.
================================================================
    <servlet>
        <servlet-name>loadonstartup</servlet-name>
        <jsp-file>/loadonstartup.jsp</jsp-file>
        <init-param>
            <param-name>param1</param-name>
            <param-value>ValueOfParam1</param-value>
        </init-param>
	<load-on-startup>1</load-on-startup>
    </servlet>
================================================================

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