Do you have the <s:head> tag? It won't work without that.


chengas123 wrote:
Hi,
I'm having trouble getting the autocompleter working.  When I type in the
box, nothing happens.
I am using Struts 2.0.8 with JSON plugin 0.15.

The relevant lines from my JSP are:
    <s:url id="jsonList" value="/AutocompleteField.action"/>
    <s:autocompleter name="city" theme="ajax" href="%{jsonList}"
dataFieldName="json" cssStyle="width:132px" showDownArrow="false"
autoComplete="true" searchType="startstring" />
If I visit AutocompleteField.action?city=cle I get the following:
{"json":["CLEARFIELD","CLEARWATER","CLEBURNE","CLEMMONS","CLERMONT","CLEVELAND"]}

Thanks,
Ben
http://www.benmccann.com benmccann.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to