| Author |
Submitting other elements outside a form with a form
|
Rajesh Khan
Ranch Hand
Joined: Oct 16, 2011
Posts: 230
|
|
|
I have a form on a jsp and it submits ok to a servlet. However I want some additional parameters to be submitted along with the form (These parameters are outside the form) - for instance some of the values present in a label tag. One way that i think this could be accomplished by is setting onsubmit= "AttachParameters()" and the value of those parameters will be inserted in hidden fields in my form. Are there any better ways ???
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56179
|
|
|
That's the way that I'd go about it.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Submitting other elements outside a form with a form
|
|
|