How do I manipulate in the backend using multiple input
's with the same name
?
For example:
<input type='text' name='telefone' ><br>
<input type='text' name='telefone' ><br>
<input type='text' name='telefone' ><br>
<input type='text' name='telefone' >
I tried to get in the method parameter as a array(String[] telefone)
but it did not work. I also tried to put []
in name
but also did not work.
Ps: I'm using SpringMVC.