Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Javascript Problem

PremJan 20 2012 — edited Jan 23 2012
Hi 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.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 20 2012
Added on Jan 20 2012
4 comments
130 views