posted 20 years ago
hi
how to pass the values and how to get the Arraylist table from java script function.
we have one java class file, that contains the method1 and it returs the ArrayList Table.
My java class contains the ArrayList, like
Class A
---------------
public ArrayList getMethod1(String val1,String val2)throws NoResults
{
ArrayList SUBLOBTable=new ArrayList();
some database code here
----
-------------
return SUBLOBTable;
}
IN My JSP : we create a obj for that.
--------------------
ClassA Obj = new ClassA();
Now my question like �how to access that SUBLOBTable from javascript�
IN javascript
----------------------------------
var jsObj = "<%=Obj%>"; //i creaate a var which contains the obj of that ClassA file
var mylist = new Array();
mylist = jsObj.getLOB(GRP_Type,LOBL); //it gives the object doesnot support this property or method.
var s1=mylist.size();
for (i=0;i<s1;i++)
{
-------
--------------
}