JSP

JSP Projects

JSP Project

What is JSP Request object ?
Previous Home Next

 

Request object in JSP is used to get values for the request that the client made to the  web server..

Request Object:
Request object takes the value of request from the client and pass it to the server.
JSP request implicit object is instance of javax.servlet.http.HttpServletRequest implementation and itís one of the argument of JSP service method. We can use request object to get the request parameters, cookies, request attributes, session, header information and other details about client request
 The object request is written as :
Javax.servlet.http.httpservletrequest.

Methods of request object
 getCookies()
 getHeaderNames()
getHeader(String name)
 getAttribute(String name)
 getAttributeNames()
 getParameter(String name)
 getParameterNames()
 getMethod()
 getParameterValues(String name
 getRequestURI()
 getQueryString()


 

Previous Home Next