Excuse my english please.
I'm using Dojo to manage AJAX calls
In my jsp, I call an Struts Action with dojo.xhrPost, but my action returns
another jsp, but I need to receive a Client bean with some data as a result
type
public class Client() {
private String sName;
private String sPhone;
}
xhrPost receives results in a load function. And here, I need to get the
Client result in order to fill some controls.
load: function(ClientResult) {
dijit.byId('name').innerHTML = ClientResult.sName;
dijit.byId('phone').innerHTML = ClientResult.sPhone;
}
How can I do that? Is it possible Struts2 can send objects as a result
type?.
--
Rafael Taboada
Software Engineer
Cell : +511-992741026
"No creo en el destino pues no me gusta tener la idea de controlar mi vida"