Dear All,
I need to choose the value of a list item in jsp. There are many employees in various departments and i need to choose that employees in department wise.

Example. I have two list items in jsp

         1.  Select dept_no,dept_name from departments


     2.  SElect emp_name from employees, departments where emp_dept_no=curr_dept_no and curr_dept_no = dept_no

These two are the list items. When i choose the department from the first list item i need to display the employees in that particular department in the second list.

you'll need to detect value changes. if it's not the default text: "select employeename from employees where department like <selectedValue>' and populate the second list.

Yes, That's the problem. I can't detect the value in the first list.