tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barry White" <>
Subject Re: A servlet which has no mapping?
Date Tue, 16 Oct 2001 15:48:30 GMT

Yes... but it will only access EVIL pages.
----- Original Message ----- 
From: "Dr. Evil" <>
To: <>
Sent: Tuesday, October 16, 2001 5:07 AM
Subject: A servlet which has no mapping?

> Hi, I have a question for all the Tomcat experts:
> I am creating a servlet class which extends HttpServlet, but it will
> only implement the init() and destroy() methods.  It won't have a
> doGet() or any other do*() method.  Its only purpose it to set up a DB
> connection pool for use by the custom tag libs.
> Because this servlet has no doGet() method, does that mean it can
> never be accessed as a page?  Or is there something I should do to
> block that?  Or should I create a doGet() method which just returns an
> error?  Or is there some better way to initialize my application?
> Thanks

View raw message