Create a list in the action class and populate them with various states name of U.S. as shown in the "autocompleter" class.
package net.roseindia;
|
<s:autocompleter theme="simple" list="state" StateName/>
it creates a autocompleter list with the name of U.S. sates.
autocompleter.jsp
<%@ taglib prefix="s" uri="/struts-tags" %>
|
Output of the autocompleter.jsp :
![]() |
When you enter the 'c' letter in the textbox. You gets the following:
|
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.
Ask Questions? Discuss: Struts 2 Autocompleter,Struts 2 Autocomplete
Post your Comment