• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Element Array: Text-boxes 2D Array - How to...

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a situation where the page has a table sreucture of text-box 2D array. The page must allow dynamic addition/removal of rows.

This is typically a kind of 2D element-array, which is array of text-boxes.

In struts, how this situation can be handled to retrieve data from form - where the rows are dynamic.

how action-form can be built to capture the data from the 2D text-box array?

Please help.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use indexed properties to create a dynamic table in Struts, but you must use a single-dimensional array or collection of JavaBeans. Multidimensional arrays are not supported for indexed properties. For more information on indexed properties along with a working example, see question 6 of the JavaRanch Struts FAQ
[ August 14, 2007: Message edited by: Merrill Higginson ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic