You can view the tutorials best in Google Chrome, Mozilla Firefox, Opera, higher version of Internet Explorer

Using Struts 2 Autocompleter With Example

Struts » On Oct 29, 2011 By Sivateja

Let us see how to work with struts 2 autocompleter tag with example.  This autocompleter tag will works asynchronously, and dont forget to add <s:head theme=”ajax” /> in the header part of the webpage [ check in success.jsp ].

jars required

  • commons-logging-1.0.4.jar
  • freemarker-2.3.8.jar
  • ognl-2.6.11.jar
  • struts2-core-2.0.11.jar
  • xwork-2.0.4.jar


files required

  • index.jsp
  • success.jsp
  • web.xml
  • struts.xml

Directory Structure






By ( Java/J2EE Developer & Web Designer )
Founder of You can contact me at sivateja [at]


4 Responses to “Using Struts 2 Autocompleter With Example”
  1. Maura Dobberstein says:

    I enjoy the efforts you have put in this, appreciate it for all the great posts.

  2. tanmaya says:

    while running it is showing that
    No tag “autocompleter” defined in tag library imported with prefix “s”

  3. Dharm says:

    while running it is showing that
    No tag “autocompleter” defined in tag library imported with prefix “s”

    what is the solution of this…?

  4. Bhagwati lal Patidar says:

    I want to Dynamically add, remove rows on table and insert all rows values into Mysql database using Struts-2, so please help how to do this task


By posting your answer, you agree to our comments policy.
So, What would you like to learn today?
Browse these popular technologies
Hibernate spring struts Servlets ajax Log4j jQuery Json Core Java Web Services AngularJs

Most Recent Tutorials
Hibernate Recent Posts
Spring Recent Posts
Struts Recent Posts
Recomandded Links
Current & UpComing Tutorials
Sitemap :
spring Hibernate struts Json Ajax Log4j Log4j coreJava Servlets Web Services

  Web Services [ SOAP ], JSP
Facebook_Java4s  Twitter_Java4s  GooglePlus_Java4s  Youtube_Java4s 
© 2010 - 2015 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.