Create a list in the action class and populate them with various states name of U.S. as shown in the "autocompleter" class.
<s:autocompleter theme="simple" list="state" StateName/>
it creates a autocompleter list with the name of U.S. sates.
Output of the autocompleter.jsp :
When you enter the 'c' letter in the textbox. You gets the following:
Ask Questions? Discuss: Struts 2 Autocompleter,Struts 2 Autocomplete
Post your Comment
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.