String method = org.apache.struts2.ServletActionContext.getRequest()
boolean isPostMethod = "POST".equalsIgnoreCase(method);
if (!isPostMethod) {
} else {
}