Postingan

Menampilkan postingan dari Juni, 2009

jquery-autocomplete in struts2

Have you ever tried to use jQuery-autocomplete in Struts2 ? I used  jQuery  when I have to add an autocomplete feature on a textbox in my Struts2 project. The textbox should display the existing tags on the textbox, so users could choose any tag displayed by the autocomplete feature. If you want to try an example of jquery-autocomplete, go check it out on  this link . You'll also find the demo link on that page. Here are my steps to implement autocomplete in my project: Create a method to get the existing tags from database. ..... ..... public String findTag() {   listTag = daoFactory.getTagDAO().findTagList();   return SUCCESS; } ..... ..... Create a JSP that displays the list of existing tags, called tag.jsp <%@ taglib prefix="s" uri="/struts-tags"%> <s:iterator value=&qu