JSP Config implicit object

In JSP, config is an implicit object of type ServletConfig. Config Implicit object is used for getting configuration information for a particular JSP page like get the driver name, servlet name etc.

The config object is created by the web container for each jsp page.Generally, it is used to get initialization parameter from the web.xml file.




<!DOCTYPE html>
<title> JSP Config</title>
String name=config.getServletName();
out.print("Name of Servlet is: "+name);