Javascript Problem
PremJan 20 2012 — edited Jan 23 2012Hi I am facing one issue
I have one jsp file which is having following javascript Fucntion
function myFunction(obj){
if(obj!=null){
<%
List<String> arrayList= new ArrayList<String>();
%>
var entry = obj.id
<% arrayList.add(%>entry<%); %>
<% request.setAttribute("arrayListAttribute",arrayList); %>
}
}
Above JS function is fired when some onlick event is get fired on some elements say.
Now Problem is I am not able to add that element's ID into arraylist . This jsp is not compiling due to this.
Please help me out.