getMethod() Method Example

getMethod() method is defined in HttpServletRequest interface from javax.servlet.http package. With getMethod() method, the Servlet Programmer can know what method (either get or post) is used by the client from HTML file to call the Servlet. Let us see what Java API says about this method. java.lang.String getMethod(): Returns the name of the HTTP method …

getMethod() Method Example Read More »