So it's still not working? Can you post some of the generated
JavaScript? I was shooting for something like this:
var products = new Array();
var productBeans0 = new Array();
productBeans0[0] = ["name0", "id0"];
productBeans0[1] = ["name1", "id1"];
...
products[0] = productBeans0;
var productBean
Hahahahaha.Kris, yes this is sickening. More so
after trying all possible solutions. This ruined my
Friday :((.
regards,
Rick
--- Kris Schneider <[EMAIL PROTECTED]> wrote:
> Man, this is really sick ;-). If I'm understanding
> you, maybe this will work (or
> maybe not...):
>
> var produc
Man, this is really sick ;-). If I'm understanding you, maybe this will work (or
maybe not...):
var products = new Array();
var productBeans = new Array();
productBeans[] = ["",
""];
products[] = productBeans;
Quot
Hi,
I did the following, but the results were not
displayed.
Whats wrong with my code?
>>
products is a collection of ArrayLists, every
arrayList contains
a list of ProductBeans, ProductBean has productName
and productId properties.
products are retrieved in action class and are put
into
More questions about the following:
1) It says in logic tags reference:
id: "The name of a page scope JSP bean that will
contain the current element of the collection on each
iteration, if it is not null."
So, it means myList ArrayList should conform
to JavaBean routines, is that right? For examp
James:
Thanks for your nice presentation. I will try it out
right away.
regards,
rick
--- James Childers <[EMAIL PROTECTED]> wrote:
> You'll need to do a couple of things:
>
> 1) (Assuming you're using Struts, of course.) Create
> your Java array/collection/whatever in the Action
> that get
memory. I'm sure there are some glaring errors here, but
this is the general flow.
-= J
> -Original Message-
> From: Rick Col [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 25, 2003 9:56 AM
> To: [EMAIL PROTECTED]
> Subject: newbie question: Java array to JavaScript Array
>
Hi,
I did not put my question in a nice method previously.
I am trying to retrieve data from database and pass
data into a JavaScript function as an Array and
display it on my JSP page.
If I have to write a Scriptlet inside JavaScript code
to get data from db, what kind of Java data form
(Arra
8 matches
Mail list logo