Simple Context Init Param

A couple years ago, a common question on the Tomcat-Users list was "How do I set application scoped initialization parameters in Tomcat the way I do with global.asa in ASP?". This example shows how you can set them in your web.xml file. For a more 'fine grained' approach, see 'Simple Servlet Init Params'.

To Run:

  1. Download SimpleContextInitParams.war to your TOMCAT_INSTALL/webapps directory.
    If you're using MSIE, make sure it doesn't change the extension to ".zip".
  2. Then, click on this link: