• Post Reply Bookmark Topic Watch Topic
  • New Topic

el function and javascript

 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
i have LinkedHashMap of employeeInfo so i put it in the presentation tier as a drop down list.
with
<select>
<c:forEach items="${employeeInfo}" var="employee">
<option value='${employee.value.employeeId}'>${employee.value.employeeName}</option>
</c:forEach>
</select>
-----------------------------
i already send with employeeInfo also employeeSalary. so when i choose employee from this drop down list i want to use his salary in javascript function.
Frankly i dont know how to send from this drop down list the salary to javascript.
any hint please
 
dhwani mathur
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Hani


See this link for reference

Go through the first point Expression language in the link.
May be it helps you...........

SCJP(1.5),SCWCD(On the way....)
Dhwani:>Winning is not important but it is the only thing.

[ June 28, 2008: Message edited by: dhwani mathur ]
[ June 28, 2008: Message edited by: dhwani mathur ]
 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks but this link for ABC's for jstl.would you please read my message carefully i want to send the selected employee from drop downlist ${employee.salary} to javascript function i can send his employeeId..but how can i send to javascript function related salary.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're using JSTL/EL to build the list.

I'm going to move this to our HTML/Javascript forum where you can get better help with the Javascript part of your question.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!