Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Doubt Regarding Web.xml

Nittin singla
Greenhorn

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
Marshal

Joined: May 26, 2003
Posts: 31680
    
189

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]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Duplicated question?
http://www.coderanch.com/t/544740/Servlets/java/Web-xml
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62307
    
  68

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Doubt Regarding Web.xml