views:

164

answers:

2

Is there a way to know in Struts2 action's method if this is GET or POST request?

A: 

You can use HTTPServletRequest.getMethod() to find out that and handle accordingly in action.

Reddy
A: 

HTTPServletRequest.getMethod()

juanp