Hi,

How can I pass a vector generated in JSP to javascript?

I have a <select> which is fill with the data of a vector that contains a java class. Sth like this:

<select name="list" size="6" onclick="show()">
<%
if(vectorAux!=null)
{
for(int i=0;i < vectorAux.size(); i++)
{
Answer asw1 = (Answer)vectorAux.elementAt(i);
int idres = asw1.getId_Answer();
String textRes = asw1.getText();
%>
<option value="<%=idres%>"><%=textRes%></option>
<%
}
}
%>
</select>


When I click on "list" launchig function "show()" I need to have the values from vectorAux in the javascript function "show()".

I´ve tried this: show(<%=vectorAux%>)
but it doesn´t work

Is it possible or can I do anything different???

Thanks a lot.