Implicit objectsare java objects in jsp which will be created by servlet container. usually if we want to access any data in a class, we have to create a object using new operator and then access the methods on that object. for implicit objects, we can use them directly on jsp pages.
JSP is used in mvc model architecture so i will clearly separates presentation logic with model logic. JSP used as presentation logic which we can use the objects with out creating the instances.
In servlets API, we have to create the objects, calls the methods on the objects. but to use the servlet specific information in JSP, implicit object can be used without creating any object.
I want blog this as part of j2ee tutorials in my blog
1. request implicit Objects:-
request scope is similar to HttpServletRequest object which holds request specific information. request object in jsp is equal to HttpServlet in servlets.
request object is used to persist the request scope parameters, and reqeust meta header information like
2. response implicit Objects:-
response is an similar to HttpServletResponse object in a servlet. Response object holds the information returned to client. This object holds cookies, content and type and http header
3. Page implicit Objects:- page indicates current jsp page and has the scope of jsp page execution
Session implicit Objects:- Session object is HttpSession class in Servlets. Session holds personalized data of a user.
In a real scenarios, Session object is created one for each user
application implicit Objects:- application is global object similar to in Servlets. application objects holds information about webapplication and only one application for each webapplication
PageContext implicit Objects:- jsp pageContext is object of PageContext in servlets.
5.Config implicit Objects:- Jsp config is instance of ServletConfig class. which holds configuration parameters at servlet level.
Web application can have Config objects in such way that each servlet only one config objects.
6.Exception implicit Objects:- Exception object is instance of Throwable class.