dcsimg
Accessing Tomcat Container(5.0) variable in JavaScript
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Devang_Shah
Posted On:   Saturday, October 23, 2004 04:39 AM

How to access a arraylist set in the tomcat container(5.0) in javascript.

The following works well with integer array,

Array intarr = <%= request.getAttribute("intarray") %>

but for string arrays it does not work and gives an undefined error messsage.

intarray ={1,2,3,4,5};

Re: Accessing Tomcat Container(5.0) variable in JavaScript

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, October 23, 2004 07:58 AM

Maybe you need to escape the quotes, in the java string, so they come out right in the javascript when the javascript array is strings. Like,

stringarray = {""one"", ""two""}
About | Sitemap | Contact