04 Aug
Posted by: admin in: Java, java snippets, java web apps
There are two options to store parameters in web.xml:
- context parameters – available to the entire scope of the web application
- init parameters – available in the context of a servlet or filter in the web application
Context Parameters
There are several options to handle the Java properties files:
To read java properties files from the classpath:
The properties files can be stored in the classpath. This way they can be put inside jar files and it’s really useful for web applications when the absolute location of the properties files is not known. When I tested [...]