Multidimensional arrays in Struts form?

G

geclinke

Hi,

I was wondering if anyone knew whether or not it's possible to use a
multidimensional array in a Struts form.
I have a JSP with a number of input elements;

<input type="text" name="attribute[0][1]" value="xxxxx"/>
..........

I've declared a two dimensional array in the relevant form and it's
being accessed when the JSP is submitted.

When I get the array from the form in an action the contents appear to
be corrupted.
Is there a fundamental problem with indexing elements in a
multidimensional manner in JSP/Struts?

Thanks,
Giles
 
J

jackie

As I remembered, you may use "map" instead of 2D array. I must state I read
it from somewhere and I haven't give it a try.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top