Assigning html <input> value to a jsp variable
843838May 10 2006 — edited May 10 2006I have the following problem: I need to assign the value of html <input> field to a jsp variable. This should be done without submittion of the form.
<form name="main">
<table>
<tr>
<td><input type="text" name="gantry" value="123"></td>
</tr>
<table>
</form>
Is there any way to access main.gantry.value from jsp and assign it to a variable? I tried
<% prevGantry = main.gantry.value; %>
but it didn't work, and the problem is not with parsong or initialisation. Please, can anyone help?
Best regards, SoVa.