I have a JSP in which there is a select
list containing entity kind names. When I select an entity kind I need to populate another select
list with the field names of the selected entity kind. For that I call a JavaScript function on the onchange
event.
In the JavaScript method I need to call a method in the backend that returns an arraylist
that contains the field names of the selected entity kind.
How do I call the method with and without Ajax? Also how do I populate the second select list dynamically with the arrayList
?