Greetings,
Does anybody know how to put variable from JavaScript to a Java variable in a JSP?
For example, lets say I have an html select box called sBox that I want to store it in a Java String object. Is there someway to store the currently selected option in sBox to String javaSBox.?
I know with scriptlets I can do this:
var holdValue = <%= javaValue %>
but I’m looking for something to the affect of:
doc = document.forms[0]
String javaSBox = doc.sBox.options[doc.sBox.selectedIndex].value;
Is there a way?
Thanks in Advance
Jeff Sulman
Does anybody know how to put variable from JavaScript to a Java variable in a JSP?
For example, lets say I have an html select box called sBox that I want to store it in a Java String object. Is there someway to store the currently selected option in sBox to String javaSBox.?
I know with scriptlets I can do this:
var holdValue = <%= javaValue %>
but I’m looking for something to the affect of:
doc = document.forms[0]
String javaSBox = doc.sBox.options[doc.sBox.selectedIndex].value;
Is there a way?
Thanks in Advance
Jeff Sulman