<s:actionerror/> works on server side but JavaScript works on client
side - it isn't possible to join them. You can only mimic its
behaviour by adding the same html structure as <s:actionerror/> does.

2015-08-28 17:14 GMT+02:00 fea jabi <zy...@hotmail.com>:
>   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);}
>
> });
> ........
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to