Beruflich Dokumente
Kultur Dokumente
variables in the ser vice method of the generated servlet. They are implicitly made
available to a JSP without need of declaring them. These are called implicit variables or
objects.
1. request
2. response
3. session
4. config
5. application
6. page
7. exception
8. out
9. pageContext
1. request:
this object is of type javax.servlet.http.HttpServletRequest. it refers to the current request
to theJSP. By using this object we captupre the client data
In the above we get the form data directly into the JSP.
<%String value=(String)application.getAttribute(“name”)%>
6.page:
this is of type java.lang.Object. it refers to the instance of the generated servlest. This is
used rarely in JSP
7. exception:
this is of type java.lang.Throwable. this is not available in all jsps. These pages which
are designated as errorpages, can access this object
8.out: this is of the type javax.servlset.jsp.jspWriter. it refers to the output stream for the
page. This is used to send html context from the jsp
1. it stores reference to the implicit objects. By supplying this single object to any
java helperclass,k we supply all implict objects. That helper calss can retrieve all
the implict by calling getXXXXX() methods on the PageContext object.