• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

declaring an arraylist or array type hidden variable in a form

 
rammie singh
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no arraylist control in HTML. You just need to use the regular, everyday controls.

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic