I don't think that is possible using standard J2EE features. Perhaps your application / web server has some features for that? I think Jetty has, but they won't be standard functions, meaning they won't be portable across app/web servers.

In Tomcat, applications are configured by the global web.xml file followed by the app-specific one in WEB-INF. So, if you go to <TOMCAT_HOME>/conf/web.xml and add the following as the first child of the web-app element, it should work for all web apps:

TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations technology projects - with its network of technology-specific websites, events and online magazines.