Sunday, December 21, 2014

JSP implicit objects

Every JSP file has 9 implicit object which you can use directly without being declared.
Implicit objects are the objects that are available for the use in JSP documents without being declared first. These objects are parsed by the JSP engine and inserted into the generated Servlet.
JSP implicit objects are as below:

Implicit object Scope comment
request Request request
response Page response
pageContext Page page environment
session Session session
application Application same as ServeletContext
out Page Writing to the outputstream
config Page same as ServeletConfig
page Page this pasge's Servlet
exception Page exception created on this page

Note: If you have your own object defined with same name as the implicit Object, then Implicit objects take precedence over your object. So, avoid to use implicit object name as your own object. 


No comments:

Post a Comment