File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

web.xml

tanaji hurkude
Greenhorn

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

Joined: Jul 25, 2009
Posts: 15
Hi

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.
 
GeeCON Prague 2014
 
subject: web.xml