Get all updates of Java4s

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

Example

files required

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

Directory Structure

index.jsp

success.jsp

LogingEx.java

web.xml

struts.xml

Output

Related Posts

Java4s_Author
Java/J2EE Developer & Web Designer, founder of Java4s.com. Sign-up for the email newsletter for your daily dose of Java tutorials.
Email: sivateja@java4s.com

Comments

6 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

  5. Neha says:

    How to read the the selected data into another text box. Please help me regarding this.
    Thanks in advance.

  6. munish says:

    how to fill form onclick text other text field auto fill as per first??

Name*
Mail*
Website



By posting your answer, you agree to our comments policy.
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_Logo Hibernate Recent Posts Spring_Logo Spring Recent Posts Struts_Logo Struts Recent Posts
Recomandded Links Current & UpComing Tutorials
Upcoming
  Web Services [ SOAP ], JSP
Contact | About Us | Privacy Policy | Advertise With Us

© 2010 - 2016 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.