I have some arrayList objects as my servlet request attribute. I want to get it into my javascript variable which is in a JSP page. I tried like this.
abc.jsp
<script>
var myList=<% (ArrayList)request.getParameter("list_name") %>;
//do use of myList.....
</script>
But this is not working. I am not getting the data.
Then tried with
var myList=<% =(ArrayList)request.getParameter("list_name") %>;
Didnt work!!
Thanks in advance..