PREQUESTION:
Hi i have an object java
Object[] unions = XmonUtils.getUnions();
Union = [
<% for (int i=0; i<unions.length; i++){ %>
<% UnionService union = (UnionService)unions[i]; %>
<% if(union != null){ %>
{
Name:"<%=initializer.getBundle().getString(Util.generateKey(union, "name"), union.getName())%>",
Description:"<%=initializer.getBundle().getString(Util.generateKey(union, "description"), union.getDescription())%>"
}
<% if(i != (unions.length -1)){ %>
,
<% } %>
<% } %>
<% } %>
]
after in a put in a ListGrid the object in this mode
XmonList.setData(Services);
ALL WORK SO.
QUESTION :
I call via dmi with DMI.call
with yours examples all works.
Now i have called the object up
in the .java but how i can manage it after in jsp???
.java
------------------------------------------------------------
public class ClasseAjax {
public Object[] MetodoAjax () {
Object[] unions = XmonUtils.getUnions();
// send back our own time as the response
return unions();
}
}
------------------------------------------------------------------------
after in client :
DMI.call("example", "ClasseAjax", "MetodoAjax", "prova", "myfunction(data)");
function myfunction(data)
{
alert(data.length); < --- // an example it work and the lenght arrive and is printed so the object is viewed
HERE HOW I CAN DO A FOR WITH THE OBJECT JAVA OF UP, IF NOW I HAVE A OBJECT DATA JAVASCRIPT??????
}
Hi i have an object java
Object[] unions = XmonUtils.getUnions();
Union = [
<% for (int i=0; i<unions.length; i++){ %>
<% UnionService union = (UnionService)unions[i]; %>
<% if(union != null){ %>
{
Name:"<%=initializer.getBundle().getString(Util.generateKey(union, "name"), union.getName())%>",
Description:"<%=initializer.getBundle().getString(Util.generateKey(union, "description"), union.getDescription())%>"
}
<% if(i != (unions.length -1)){ %>
,
<% } %>
<% } %>
<% } %>
]
after in a put in a ListGrid the object in this mode
XmonList.setData(Services);
ALL WORK SO.
QUESTION :
I call via dmi with DMI.call
with yours examples all works.
Now i have called the object up
in the .java but how i can manage it after in jsp???
.java
------------------------------------------------------------
public class ClasseAjax {
public Object[] MetodoAjax () {
Object[] unions = XmonUtils.getUnions();
// send back our own time as the response
return unions();
}
}
------------------------------------------------------------------------
after in client :
DMI.call("example", "ClasseAjax", "MetodoAjax", "prova", "myfunction(data)");
function myfunction(data)
{
alert(data.length); < --- // an example it work and the lenght arrive and is printed so the object is viewed
HERE HOW I CAN DO A FOR WITH THE OBJECT JAVA OF UP, IF NOW I HAVE A OBJECT DATA JAVASCRIPT??????
}
Comment