Client side validation not working using validate()

前端 未结 3 1614
挽巷
挽巷 2021-01-22 15:36

I am doing validation inside validate() method.

public void validate(){
    if(continent.equals(\"-1\")){
        HttpServletRequest request=ServletActionContext         


        
3条回答
  •  青春惊慌失措
    2021-01-22 16:19

    It is possible to perform AJAX validation using your server side code using struts2-jquery plugin , as shown in the Showcase under:

    • Form Forms with Validation
    • Form Forms with Custome Validation

    The example that might interest you more is Form Submit without AJAX.

提交回复
热议问题