JSP Config Implicit Object

In this tutorial you will learn about the JSP Config Implicit Object and its application with practical example.

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 .

Table Of Contents

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

 

In this tutorial we have learn about the JSP Config Implicit Object and its application with practical example. I hope you will like this tutorial.