• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

struts2 jquery autocompleter

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can ayone please provide struts2 jquery autocompleter full example.

I refered to the below link.. It is not working.
http://code.google.com/p/struts2-jquery/wiki/AutocompleterTag

In the execute method I see

if (term != null && term.length() > 1)



but the word term is no where specified in UI - sj:autocompleter.

That example is not clear.

Please help me
 
pooja par
Ranch Hand
Posts: 31
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved the issue.
Posting the code. This may be helpful for somebody.
I also included topics
JSP

Struts.xml

Action.java


JARS added


 
Ranch Hand
Posts: 213
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the example. I was just about to give up trying to get the autocompleter to work.
 
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hope this link would help you
http://www.weinfreund.de/struts2-jquery-showcase/index.action
 
Richard Golebiowski
Ranch Hand
Posts: 213
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was able to get a basic JSON autocompleter working that returned a string array but I cannot get it to work with a list and the JSON examples for customers at the link above do not work. Has anyone had any success with a List?
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, exactly the I type of example I was looking for. The code at google isn't clear to me also.
 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic