dcsimg
dynamically getting values from database into listbox corresponding to selected item of another listbox(JSP)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   neha_joshi
Posted On:   Monday, April 2, 2007 07:34 AM

i have a requirement in my JSP project to dynamically get values in a listbox from database corresponding to a value selected in another list box.how can i do that using JSP or javascript....i am stuck because of this...please help..

Re: dynamically getting values from database into listbox corresponding to selected item of another listbox(JSP)

Posted By:   Anonymous  
Posted On:   Tuesday, April 3, 2007 07:09 AM

hi neha,
using java script u can do this simple.
after selecting item from listbox you just call methode with parameter like (ex: onchange(item) )and define that in javascript in that methode you just pass that item with url and get that from action class and use that item to get list from DB

so in that action class you need to write one methode to get list by passing item

hope this clear... :)
let me know if you have any issues.

regards,
Sreenu
About | Sitemap | Contact