Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Assigning html <input> value to a jsp variable

843838May 10 2006 — edited May 10 2006
I 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 7 2006
Added on May 10 2006
1 comment
508 views