JSP implicit objects - What are different implicit objects of JSP?

What are different implicit objects of JSP?

Answer
There different implicit objects of JSP are:

 pageContext
 pageScope
 requestScope
 sessionScope
 applicationScope
 param
 paramValues
 header
 headerValues
 cookie
 initParam

Explain the different implicit objects in JSP.

There are implicit objects supported by JSP. These objects are created by the container, not by the code author. These are the java objects to implement the Servlet and JSP API interfaces. There are nine (9) JSP implicit objects available.

JSP implicit objects are as follows:

 1. request : An object that implements javax.servlet.http.HttpServletRequest, to represent request given by the user.
 2. response : An object that implements javax.servlet.http.HttpServletResponse, to represent the response directed to the client.
 3. out : An object that is the instance of javax.servlet.jsp.Jsp’Writer class, to represent the output content that is to be sent to the client. The out implicit object is used to write the output content.
 4. session: An object that is an instance of a class that implements the javax.servlet.http.HttpSession object that represents a client specific conversation.
 5. application: An object that is an instance of a class that implements javax.servlet.ServletContext interface, to provide the facility of obtaining the web application to the JSP.
 6. exception: An instance of java.lang.Throwable class, to handle exceptions in a JSP. The exception is represented as an error page.
 7. config: An implicit config object that implements javax.servlet.ServletConfig interface, to provide the facility to obtain the parameters information.
 8. page: An instance of java.lang.Object class, to represent the current JSP itself.
 9. pageContext: An implicit pageContext page, to represent the context information.
What are scopes an object can have in JSP page?
JSP object - An object can have following scopes in a JSP page: Page Scope,Request Scope, Session Scope...
Explain why and how to disable session in a JSP page.
JSP Session - Disabling the session improves the performance of a JSP container. When a JSP is requested, an HttpSession object...
Benefits of JSP
JSP benefits - JSP technology emphasizes on reusing the components that helps to develop more purposeful....
Post your comment