I need help with passing a Javascript value to a Java function in JSP. What is the best way to achieve this? The ID I want to pass comes from a combobox in JSP through Javascript. My goal is to extract the ID from the combobox and then pass it as a parameter to a Java function to receive the Java result.
function Display()
{
var IdFromCB = (document.getElementById("MListSelect")).value;
//HOW CAN I CALL THE JAVA FUNCTION HERE USING IdFromCB as a parameter?
//'<% getSomething(-----IdFromCB-----);%>'
}
Thanks,Mark