I\'ve used the Struts2 jQuery autocompleter
for my Struts 2 application.
Here is my code:
JSP:
Do this one
Instead of this:
And make sure you are returning the list from your action class. To check this, do it with your IDE debugger or System.out.print etc.
ex...
-------------
------------
itemList.add(new ListValue("Mysl", "Mysl") );
System.out.println("Size of my list="+itemList.size());
return SUCCESS;
}
And also you should define getter & setters in your action class
private List itemList;
public List getItemList() {
return itemList;
}
public void setItemList(List itemList) {
this.itemList = itemList;
}