File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet Instance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Instance" Watch "Servlet Instance" New topic

Servlet Instance


Joined: May 25, 2006
Posts: 11
Is there is any way to create a multiple instance for a servlet explicitly?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

You can create multiple servlet entries in you web.xml file that all use the same servlet class.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 980

Here you mentioned multiple servlet names mapped to single class..

How about other way round....multiple classes mapped with same name...

I didnt check it practically ..
I agree. Here's the link:
subject: Servlet Instance
It's not a secret anymore!