| Author |
declaring an arraylist or array type hidden variable in a form
|
rammie singh
Ranch Hand
Joined: Mar 26, 2009
Posts: 116
|
|
can any body tell me how to declare an input type hidden variable of type arraylist in a form in a jsp page.
and how can i asssign values to that arraylist through javascript.
Thanks and Regards.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56192
|
|
There is no arraylist control in HTML. You just need to use the regular, everyday controls.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
What good is a hidden arraylist in a form?
Are you trying to send a list of string values in a single hidden variable? If so, consider concatenating the values together with comma separators - the jsp/servlet side will get a single long string you can take apart into the individual values.
Bill
|
Java Resources at www.wbrogden.com
|
 |
 |
|
|
subject: declaring an arraylist or array type hidden variable in a form
|
|
|