views:

8

answers:

0

I have a component in Spring 3 form, that should store multiple int values in its input path. For that purpose I have created a table

private int [] table

and getters and setters.

input path ="table";

It works kinda, but when I try to get table values and size, I get null pointer exception. I have former example which works, and it DOES NOT have the table size specified. I have tried althought doing

private int[] table =new table[10}; 

but i can't get the values right either. Why it is not working, or is there any alternative way to store multiple input values?