File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF 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 » JSF
Bookmark "web.xml" Watch "web.xml" New topic


tanaji hurkude

Joined: Aug 07, 2007
Posts: 3
Can We import another xml file in web.xml
Tim Wise

Joined: Jul 25, 2009
Posts: 15

You may include one XML file into another by using XML entities. I never tried this before on web.xml, but why shouldn't it work with it - after all this is an XML feature. For example, let this will be a content of "resources.xml" file (it should be available for the server's parser, thus better to put it in the same directory where your web.xml is)

And you want to include it into your web.xml. It works like this:

I tried this out on my application - it works fine indeed. Hope this helps you.
I agree. Here's the link:
subject: web.xml
It's not a secret anymore!