Musachy Barroso wrote:
>
> It looks ok to me, not sure what is going on. Check:
>
> http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Autocompleter
>
> for an example of working with both together.
>
> musachy
>
OK! I'm in action now!
Thanks for pointing me to that example. I had to do two things to get it to
work (still using 2.0.8). I changed my List to a Map (I just put everything
in there twice - as a key and a value) and I had to change my struts.xml as
shown below to specify the root parameter as json, which was the name of the
Map in my action:
<action name="AutocompleteField"
class="com.sherwin.whitePages.action.AutocompleteField">
<result type="json">
json
</result>
</action>
--
View this message in context:
http://www.nabble.com/-S2--Autocompleter-with-JSON-plugin-tf4132448.html#a11770551
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]