From within my JSP page, how do I know whether the user performed a GET or POST request?

Alessandro A. Garbagnati

The easiest way is to use request.getMethod(). This method returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact