loading
onSuccess
<html:view>
<html:input name="input1" value="Valor 0"/>

<ajax:function name="dados" url="/app/ajax" executeOnDocumentLoad="true">
<ajax:parameters>
<ajax:parameter name="input1" src="input1" type="val" />
</ajax:parameters>
    <ajax:onSuccess>
        /*Nesse trecho está disponivel as variaveis javascript ( Object data, String textStatus, jqXHR jqXHR )*/
         alert(textStatus);
         alert(data);
         alert(jqXHR);
    </ajax:onSuccess>
    <ajax:onError>
        
    </ajax:onError>
</ajax:function>
</html:view>