JSP Config Implicit Object

JSP Config Implicit Object

The config implicit object is an instance of javax.servlet.ServletConfig. Config implicit object is used for getting configuration information of particular jsp page. This implicit object created by web container .

Example: Let’s get understand it by simple example. We need to initialize our params in web.xml file, check one by one.

#web.xml: Here we will declare <init-param> in the <servlet> tag, like below code.

#Welcome.jsp: Here we will get our configuration file from web.xml, check below code.

Output: The output of above code will look like below image.

7