You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rick Col <ri...@yahoo.com> on 2003/07/25 03:06:56 UTC

Strus/Java counterpart of JavaScript Array?

Hi, guys:

I can use JavaScript array of arrays su as the
following to fill a box.

students = new Array(
new Array(
new Array("Saku",1),
new Array("Martin",2),
new Array("Jeff", 3)
),
new Array(
new Array("Mario", 1),
new Array("Jaromir", 2),
new Array("Robert", 3),
new Array("Alexei", 4)
),
new Array(
new Array("Alexei", 1),
new Array("Daniel", 2),
new Array("Maria", 3),
new Array("Patrick", 4),
new Array("Radek", 5)
)
);


The above Array is used as a JavaScript function
parameter. 
When I use a collection or an ArrayList ofArrayLists
to replace 
the above JavaScript Array, it fails to show up in the
box. I 
am wondering if there is such array structure in
Struts/Java I 
can use to replace javascript array, because I need to
fill the 
box using dynamic data. thanks.

rick

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org