Hi,
I am retrieving a selected item from a list/menu component on an
HTML page. The said value is passed as a parameter to a method
initiated through <jsp:useBean.
I am aware that when the user selects an item from the list/menu an
onChange event is triggered. I have handled this event by a javascript
function.
The table is populated according to the selected item, and therefore I have used the following syntax in order to populate an already defined table 'tblResults': var x=document.getElementById('tblResults').insertRow( );
Before populating each row I need to retrieve the data using the method <% outResult = result.getResult(xxx);%>, where results is the object declared by the <jsp:useBean. The xxx refers to a variable pointing to the HTML list/menu. I am able to call this method through the use of scriptlets. When I pass a value instead of xxx the process works correctly and the data is loaded into the database, however I cannot find a way of how I can pass the variable. I attempted to use
I would appreciate your kind help
Happy Christmas and thanks