Try to set the "load-on-startup" parameter to -1 for your RequestHooker.
This has the nice effect of creating your servlet when Tomcat is starting
and before it accepts any request....

We use this to initialize our API before serving our pages, and it works
like a charm....

Denis

----- Original Message -----
From: "Katsuyuki Michishita" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 12, 2001 05:09 AM
Subject: about servlet-mapping in web.xml file


> Hi, I have a question about servlet-mapping.
> I have following code in "C:\tomcat\conf\web.xml."
>  ...
>  <servlet-mapping>
>   <servlet-name>
>    RequestHooker
>   </servlet-name>
>   <url-pattern>
>    *.jsp
>   </url-pattern>
>  </servlet-mapping>
>  <servlet-mapping>
>   <servlet-name>
>    RequestHooker
>   </servlet-name>
>   <url-pattern>
>    *.html
>   </url-pattern>
>  </servlet-mapping>
>
> I thought that "RequestHokker" is called before *.jsp is executed. But
it's
> not.
> (By the way, "RequestHokker" is called before *.html)
> why this is happing? if you can, please let me know.
>
> Thanks
>
> -Kats
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to