Add <load-on-startup> to the <servlet> element in your web.xml file: this
will load the class and call its init() method.

                                                            -- Bill K.


> -----Original Message-----
> From: Jim Willeke [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 19, 2001 4:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: newbie
> 
> 
> Is there a way to "preload" the servlets on startup?
> -jim
> 
> eric chacon wrote:
> 
> > This is normal behavior--
> > 
> > The first time, it compiles your JSP into a servlet, and 
> after that, 
> > the servlet's loaded and ready to go.
> > 
> > When you have a production site running, you might want to call all 
> > JSPs once every time you deploy so your users won't have to 
> wait the 
> > first time...
> > 
> > Cheers,
> > E.
> > 
> >> From: [EMAIL PROTECTED]
> >> Reply-To: [EMAIL PROTECTED]
> >> To: [EMAIL PROTECTED]
> >> Subject: newbie
> >> Date: Thu, 19 Apr 2001 01:35:32 GMT
> >> 
> >> 
> >> Hi .. I'm newbie in jakarta (tomcat)
> >> 
> >> I Just setting Up my Apache with jk_mod (tomcat)  in linux
> >> but I found problems
> >> When FIRST time loading JSP,
> >> e.g lynx http://localhost/examples
> >> It's take a long time ( half a minute) to loading fisrt 
> jsp page, but 
> >> after
> >> that evertyng goes fine ???
> >> 
> >> My conf just follow from doc in jakarta.apache.org
> >> 
> >> Any body wanna help me ?
> >> 
> >> 
> > 
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > 
> > 
> > 
> > 
> 

Reply via email to