:: Forum >>

Dyanamic data processing.

Hi,
My application requirement is to get the data from the backend and process and display. Instead of having the data hardcoded into java script array.Can you help me out in this regard.

Surya.
surya
Saturday, July 16, 2005
All you need to do is to produce the data array and columns array dynamically (using some PHP/JSP technology) and for display part you can use the script from one of the examples.

Suds
Monday, July 18, 2005
Hi Suds, do you have any example in JSP to produce the data array and then get it back in javascript?
Marc Font
Tuesday, July 19, 2005
Hi all!

I'm using a string array to fill the data in a Java class:

String[][] data;

I put it in the session:

session.setAttribute("data", data);

And then, in the jsp I get back the data

<%String[][] data1=(String[][])session.getAttribute("data");%>

and assign it to a javascript variable:

var data2 = <%=data1%>;

Performing like this it doesn't work. Does anyone have any idea???
Marc Font
Tuesday, July 19, 2005
A live demo using ( JSP / XML / ActiveWidgets ) is currently (19 july 2005) running at http://www.alcor.com/AWProject.html

Sources are available.
serge vb
Tuesday, July 19, 2005
Thanks a lot Serge!
Marc Font
Tuesday, July 19, 2005
Serge..
Trying your demo in my env...
Only getting .jps text in grid window... when projectAW.html loads within Project.html

Not sure what I did wrong..
Sorry if I missed something obvious.. I am not a great JS coder..

Thanks
Rob
Robert
Wednesday, July 20, 2005
hehe.. sorry.. helps if you have tomcat installed.
Using XAMPP php/mysql/appache istall which does not support tomcat at the moment.

Is there a way to do this without the jsp?

Rob
Wednesday, July 20, 2005

This topic is archived.


Back to support forum

Forum search