This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes web.xmi in servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "web.xmi in servlets" Watch "web.xmi in servlets" New topic

web.xmi in servlets

Sachin Ramesh Vir

Joined: Sep 15, 2005
Posts: 23
I am new to servlets. Whether it is always the web.xml is required to run the servlets. Is there any other way we can run the servlets without the web.xml. What is the importance of using web.xml file in servlet?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

This is a pretty well beaten subject here:
Use the search command with keywords:
web.xml required
and you should find some good threads on the subject.

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

Joined: Mar 26, 2005
Posts: 378
web.xml is the Deployment Descriptor. it tells Container to perform tasks, sort of.

From NickyEng
Diploma in Computer Studies
SCJP 1.4
Formula 1 app by Maxis (Playbook)
I agree. Here's the link:
subject: web.xmi in servlets
Similar Threads
Can we turn on and off the servlets in web.xml?
run-as for all the jsp/servlets in the web-app
Servlet Registration in web.xml??
debugjsp servlet
two servlets with same url pattern