JSP Implicit Objects

Advertisements

JSP Scriptlet Tag Request Implicit Object

JSP Implicit Objects

JSP provides standard or predefined implicit objects, which can use directly in JSP page using JSP Scriptlet. The implicit objects are Servlet API class type and created by JSP containers

There are 9 jsp implicit objects. These objects are created by the web container (JSP containers) that are available to all the jsp pages.

The available implicit objects are out, request, response, page, pageContext, exception, config, session and application.

List of all 9 implicit object are;

Class typeObject
1HttpServletRequestrequest
2HttpServletResponseresponse
3ServletConfigconfig
4ServletContexapplication
5HttpSessionsession
6JspWriter/PrintWriterout
7Exceptionexception
8PageContextpagecontext
9Objectpage

All implicit objects of jsp are accessible with in the expression and scriptlet of the jsp, but not accessible in the declaration tags of the jsp.

In a jsp session and exception object are not available always. Because session object depends on session attribute of the page directive and exception depends on isErrorPage attribute of the page directive.

In a jsp, session object is available, if session equals to true in page directive.

In a jsp an exception object is available, if isErrorPage is equal to true in page directive.


JSP Scriptlet Tag Request Implicit Object

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements