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:
|
|
Recommend the tutorial |
Ask Questions? Discuss: Struts 2 Autocompleter,Struts 2 Autocomplete
Post your Comment