Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
declaring an arraylist or array type hidden variable in a form
Joined: Mar 26, 2009
Jun 11, 2009 07:26:45
can any body tell me how to declare an input type hidden variable of type arraylist in a form in a jsp page.
Thanks and Regards.
Author and ninkuma
Joined: Jan 10, 2002
Jun 11, 2009 07:36:10
There is no arraylist control in HTML. You just need to use the regular, everyday controls.
Asking smart questions
Books by Bear
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jun 11, 2009 13:46:08
What good is a hidden arraylist in a form?
Are you trying to send a list of
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.
Java Resources at
I agree. Here's the link:
subject: declaring an arraylist or array type hidden variable in a form
JSP Help-simple question
Passing objects via form submit
Array lists syntax in jsp
sendRedirect fails to post data along with url if the data is too large
Passing an arrayList of JavaBean Object as hidden variables
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014