The javax.servlet.ServletContext.getInitParameter method is used to retrieve the value of an initialization parameter from the web application's web.xml file. It returns a String value.
Example 1: Retrieve an initialization parameter from web.xml file.
In this example, all initialization parameters and their values are retrieved from the web.xml file using the getInitParameterNames method and a while loop.
The javax.servlet package library is used for these code examples.
Java ServletContext.getInitParameter - 30 examples found. These are the top rated real world Java examples of javax.servlet.ServletContext.getInitParameter extracted from open source projects. You can rate examples to help us improve the quality of examples.