HttpServletRequest interface is defined in "javax.servlet.http" and is used to retrieve parameters from the request, HTTP request header information, cookies from the request, getting session object to maintain session for the request etc. This interface extends the ServletRequest interface to provide request information for HTTP servlets. The HttpServletRequest object is created by the servlet container and is passed as an argument to the servlet's service, doGet, doPost methods etc.
Liked it! Share this Tutorial