hello list,
I try the following:
In the Java-file I have a list of key/value pairs(coming from
database), and I want to feed out the values of the props to js-Array
like:
String js="array = new Array(";
for (int i = 0; i < props.size(); i++) {
XProperties p = (XProperties) props.get(i);
String propvalue = p.getValue();
js +="\"" + propvalue + "\"";
if(i==props.size()-1) {}
else {
js +=",";
}
}
js +=");";
How can I give this over to the HTML?
Html-file:
<script language="javascript">
here I want the String to come out like e.g. var array=new
Array("value1", "value2", "value3");
I am sure that someone here uses this, but I am lost in google, nabble
and wicketversions.
greetings
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]