I am doing validation inside validate() method.
public void validate(){ if(continent.equals(\"-1\")){ HttpServletRequest request=ServletActionContext
It is possible to perform AJAX validation using your server side code using struts2-jquery plugin , as shown in the Showcase under:
The example that might interest you more is Form Submit without AJAX.