request

The implicit object request represents the javax.servlet.http.HttpServlet Request object that is passed into the generated _jspService() method. The HttpServletRequest interface defines an object that provides access to HTTP- protocol–specific header information sent by the client. You can see how it is passed in the following code snippet:

public void _jspService(HttpServletRequest request,
  HttpServletResponse  response)
  throws IOException, ServletException {

One of the more common uses for the request object is to access request parameters. You can do this by calling the request object's getParameter() method, which is inherited from its parent javax.servlet.ServletRequest, with the parameter name you are looking for. It will return ...

Get Pure Java Server Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.