phillyfino
Programmer
Hi Everyone,
I've been trying to figure out how to assign a value that I grab through javascript into a java string. I need to grab the value of a drop down menu through javascript and assign that to a java string variable. Here's the code that I have right now:
<script>
var test = document.workingForm.letterName.options[document.workingForm.letterName.selectedIndex].value;
</script>
After getting the value of the drop down I try to assign it to a java string (I'm doing all this in a jsp page)
<%
String form_id = test;
String formName;
if (form_id!=null)
{
formName = FormList.getFormFileName(form_id);
}
%>
That doesn't work....any help would be appreciated
I've been trying to figure out how to assign a value that I grab through javascript into a java string. I need to grab the value of a drop down menu through javascript and assign that to a java string variable. Here's the code that I have right now:
<script>
var test = document.workingForm.letterName.options[document.workingForm.letterName.selectedIndex].value;
</script>
After getting the value of the drop down I try to assign it to a java string (I'm doing all this in a jsp page)
<%
String form_id = test;
String formName;
if (form_id!=null)
{
formName = FormList.getFormFileName(form_id);
}
%>
That doesn't work....any help would be appreciated
