File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.xml

 
mani k
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i learned that the servlets need to be configured in web.xml. suppose if i am working with many number of servlets, then do each servlet need to be configured separately in web.xml ?
or is there any minimum general configuration using wildcards/regexp ? and please tell me where can i get detailed info on the role of web.xml.

Thank you

--
Mani
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Until Servlets 2.5, every servlets had to be configured in web.xml. Some containers allow to access servlets without configuring them in web.xml. For example, Tomcat's InvokerServlet.

Since Servlets 3.0, you don't need to declare them in web.xml anymore. You can use the @WebServlet annotation instead.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic