struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <poulw...@gmail.com>
Subject Re: javascript array to Struts 2 action
Date Tue, 10 May 2011 17:58:34 GMT
Hi,
try with String[] field in your action,
or create a custom field setter that will take String[] as a parameter.
I also assume that on your page You are submiting it as an array?

Best greetings,
Paweł Wielgus.


2011/5/10 srsankar <sriram.itian@gmail.com>:
> i am having a array of strings on javascript and i would like to make an ajax
> call to struts 2 action which expects List<String>. I need to know a way to
> pass these values to action which will recognize it. If i pass the array
> directly, SOP is printing it as an Object and it couldnt able to cast it to
> java List. Please help me to identify how to do this. thanks.
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/javascript-array-to-Struts-2-action-tp4384471p4384471.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Mime
View raw message