0 ratings0% found this document useful (0 votes) 74 views22 pagesJSP ImplicitObjects
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
Implicit Objects in JSP
These objects are created by the web container that are available
to all the jsp pages.
These objects are also called as Pre-Defined Variables in JSP.
JSP implicit objects are created during the translation phase of JSP
to the servlet.
There are 9 types of implicit objects available in the JSP :
lout 6.application
2.request 7.pageContext
3.response 8.page
4.session 9.config
5.exceptionOut Object:
* Out is one of the implicit objects to write the data to the
buffer and send output to the client(browser) in response.
* Itis the object of JspWriter Class.
Example: “outobj.jsp”
<% out.print("This is Example
");
out.print(" Demo for OUT Object");
%> aimee: ae Sl
€ > © O tecathost8080/spex, tO:
This is Example
Demo for OUT ObjectRequest Object:
* The request is an implicit object of type HttpServletRequest. It
was created for each jsp request by the web container.
+ It can be used to get request information from web page or
document.
* By using this request object ,we can able read values from input
elements in JSP.
Example: “requestobj.html”
Request Object