struts2获得提交是get还是post方法提交

String method=ServletActionContext.getRequest().getMethod();
System.out.println(method);

如果是get  会打印出GET  post会打印出POST

原文地址:https://www.cnblogs.com/fuyuanming/p/5002289.html