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


Shankar sanjay
Ranch Hand

Joined: Sep 14, 2009
Posts: 117
Hi all,

I know how to use WEB.XML in web application. I want to use more than one web configuration file. Could you please tell me how to do that?

Or instead of WEB.XML, can i use any alternate name (like myweb.xml)?

Thanks in advance.


Sankar. S
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

You can't and no.

[Asking smart questions] [About Bear] [Books by Bear]
Gavi jadz Grandea

Joined: Sep 11, 2009
Posts: 17
The web.xml file provides configuration and deployment information for the Web components that comprise 'a' Web application.

Changing it's name won't make it detectable by the container(web server).

subject: Web.xml
It's not a secret anymore!