• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

el function and javascript

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic