struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: param interceptor is not working fine if list contain more than 10 items?
Date Tue, 10 Dec 2013 06:34:52 GMT
2013/12/10 Mohit Gupta <motgupta@gmail.com>:
> Changing    <input type='hidden'  name ='customer.orders[0].item' value
> ='someItem'/> to  <input type='hidden'  name ='customer.orders.item' value
> ='someItem'/>.
>
> This works but this is how it is supposed to work ?

It is a normal situation, parameters with the same name are passed as an array

http://docs.oracle.com/javaee/5/api/javax/servlet/ServletRequest.html#getParameter(java.lang.String)


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message