This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Doubt Regarding Web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

Doubt Regarding Web.xml

Nittin singla

Joined: Jul 02, 2011
Posts: 24
Suppose i am working on some bigger application involving thousands of servlets. Do i need to write each of these in the Deployment Descriptor file(Web.xml)??
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33132

That's one option. The other is to use an annotation in the servlet itself (if you are on a recent version of JEE.)

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Duplicated question?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

Please do not post the same question more than once.

[Asking smart questions] [About Bear] [Books by Bear]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Doubt Regarding Web.xml
It's not a secret anymore!