1.

What are Implicit JSP Objects?

Answer»
VARIABLE NameJava TypeDescription
requestjavax.servlet.http.HttpServletRequestThe request OBJECT is used to request information like a parameter, header information, server name, etc.
responsejavax.servlet.http.HttpServletResponseThe response is an instance of a class that represents the response that can be given to the CLIENT
pageContextjavax.servlet.jsp.PageContextThis is used to get, set, and REMOVE the attributes from a particular scope.
sessionjavax.servlet.http.HttpSessionThis is used to get, set, and remove attributes to session scope and also used to get session information.
applicationjavax.servlet.ServletContextThis is used to get the context information and attributes in JSP.
outjavax.servlet.jsp.JspWriterThis is an implicit object, used to write the data to the buffer and SEND output to the client in response.
configjavax.servlet.ServletConfigConfig is used to get the initialization parameter in web.xml
pagejava.lang.ObjectThis implicit variable holds the currently executed servlet object for the corresponding JSP.
exceptionjava.lang.ThrowableException which is the implicit object of the throwable class is used for exception handling in JSP.


Discussion

No Comment Found