Get Query String from Servlet Request

The getQueryString() method is defined in the HttpServletRequest interface, which is used to retrieve the query string of the HTTP request. A query string is the string on the URL to the right of the path to the servlet. Using this a programmer can know the data which is sent from the client(when a form is submitted)  [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…]