Re: Registering Servlet in web.xml file

Wei Cheng <[email protected]> Wed, 17 Nov 2004 09:12:23 +0800
Newsgroups gmane.comp.java.sun.servlet
Message-ID <OFE2E5D2BF.6CE82805-ON48256F4F.00060E71-48256F4F.000669FF@jjsea.com>
Hi Puneet ,

if you're using apache tomcat then the answer is quite simple :
use the invoker servlet .

quote :
"The invoker servlet lets you run servlets without first making changes to
your Web application's deployment descriptor (i.e., the WEB-INF/web.xml file). Instead, you just drop your servlet into WEB-INF/classes and use the URL http://host/servlet/ServletName (or http://host/webAppName/servlet/ServletName once you start using your own Web applications; ..........). The invoker
servlet is extremely convenient when you are learning and even when you
are doing your initial development. But, as discussed in the book, you do not want it on at deployment time. ............ You almost certainly want to
enable it when learning, but you should disable it again before deploying any real applications. "

you can find instructions on enabling it here.
http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Enable-Invoker
Best Regards,
Wei Cheng, Yeo
Software Engineer
--------------------------------------------------------------------------------------------
Jebsen & Jessen Communications (S) Pte Ltd





Puneet Gupta <[email protected]>
Sent by: "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[email protected]>
11/16/2004 05:48 PM
Please respond to "A mailing list for discussion about Sun Microsystem's
Java               Servlet API Technology."


        To:     [email protected]
        cc:
        Subject:        Registering Servlet in web.xml file


Hi
I am new to servlets.
Can any body please tell me whether we need to specify each servlet in the
web.xml file.
If I write 25 servlets and some of these servlets are called from jsp and
servlets.Do we still need to register all the 25 servlets in web.xml file.

Is there any way in which I don't require to specify some of the servlets
in
the web.xml file.

Thanks
Puneet

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the
body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



-----------------------------------------------------------------------
This transmission which may contain confidential and / or privileged
information is intended solely for the named recipients. If this
transmission reached you by mistake, please notify us immediately
by responding to this e-mail and then delete it from your system.
-----------------------------------------------------------------------

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html