struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <>
Subject Re: javascript array to Struts 2 action
Date Tue, 10 May 2011 17:58:34 GMT
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 <>:
> 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:
> Sent from the Struts - User mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message