text-field onchange ---> making ajax call.
 

onsucess ---> everything works fine as needed
 

on failure ----- > like user entered wrong data ---> How to show the error 
messages in jsp. I added fieldError but not sure how to show it in jsp with the 
ajax stuff.
 
In jsp
<s:actionerror/>
....................
 
<script>        ........$.ajax({

            url: 
"ajax/retrivexxxAJAXAction.action"+"?jsonRequestdata="+JSON.stringify(json),
type: 'POST',
dataType: 'json',           


            success:function(response){
.......................
 }error:function(jqXhr, textStatus, errorThrown){

                alert(textStatus);}

});
........
 
                                          

Reply via email to