I am building a form to update a database using s:textfield tags in the JSPs. I would like to offer suggestions from the entries already in de Database, like an autocompleter search box, but I would like to know if there is something simpler than the autocompleter with Json format. Is there something quick and easy that I can integrate in my form tags such as the s:textfield and able to offer suggestions from a List of Strings.
I am still considering which strings go into the autosuggest, but I think I would keep it short. Maybe 20, but it could get up to 10000 if the boss want that possibility. What do you mean by immediate list.
Sorry to interrupt. I'd like to use autocompleter, but not sure regarding the JARs that i need to include so that struts recognises the tag. I'm not going to use Dojo plugin, can anyone help me out?
As far as I remember, the struts autocompleter uses the dojo plugin and I was passing the values from the DAO using json format. The struts package for the action extends json-default. But please correct me I am wrong.
I added the following jars in my app for the autocompleer.
struts2-json-plugin-2.1.8.1.jar
struts2-dojo-plugin-2.1.8.1.jar
json-lib-2.1.jar
don't forget the struts2 dojo plugin is marked as deprecated.
if you start a new project you should not start with this plugin.
better you code it with plain javascript or use a other plugin like the
struts2 jquery plugin.