tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Arnod-Prin <sarnodp...@smile.ch>
Subject Re: add a new servlet ....
Date Tue, 27 Mar 2001 09:58:25 GMT
You have to put your class into WEB-INF/classes or a jar in WEB-INF/lib

what do you mean with your println ? You can only write from init into
System.out or System.err.. you don't have any response object.

Anyway, what is the value to give for the load on startup ??

thank you,
Sam, a savoisian user ;)

dsergent@imexpert.com wrote:

> I try to add a new servlet which is supposed to load on startup. But I
> don't know where I'm supposed to put the class file. If I use a println()
> method in the init fonction of my class, where is it supposed to write
> something ???
>
> my web.xml file :
> ....
>     <servlet>
>         <servlet-name>
>                 Settings
>         </servlet-name>
>         <servlet-class>
>                 SettingsServlet
>         </servlet-class>
>         <init-param>
>                 <param-name>rootFile</param-name>
>                 <param-value>c:\testJSP\init.conf</param-value>
>         </init-param>
>         <load-on-startup>
>                 -2147483646
>         </load-on-startup>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Settings</servlet-name>
>         <url-pattern>/servlet/Settings</url-pattern>
>     </servlet-mapping>
> ....
>
> thks a lot for your answer
>
> David
> a french tomcat beginner


Mime
View raw message