Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Retrieving Information > The HTTP Request and JSP

5.2. The HTTP Request and JSP

As the HTTP request and HTTP response are such a critical part of JSP, they are the two parameters for the Java class generated from any JSP page. The request object is of the type HttpServletRequest and is simply named request.The authors of the JSP specification provide many different methods for accessing information inside the request, both in raw data format as well as with convenience methods.

Parameters

String request.getQueryString()
BufferedReader request.getReader()
ServletInputStream request.getInputStream()
String request.getMethod()
String request.getParameter(String)
Enumeration request.getParameterNames()
String[] request.getParameterValues(String)


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint