Obtaining HTTP Request Headers from HttpServletRequest

In this article we will learn how to get the HTTP Request Headers via HttpServletRequest, The HTTP request which a client browser sends to the server includes HTTP request headers with  some important information, such as cookies and the referer. You can access these headers from the HttpServletRequest object passed to a doxxx method. [Read more…]

ServletContext Interface in Servlets

ServletContext is one of the predefined interface available in javax.servlet.* package, The object of the ServletContext is created by the web container at the time of deploying the application(which will be available one per application) . This object is used to get configuration information from web.xml file.  [Read more…]