Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2 jquery autocompleter

 
pooja par
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


 
Richard Golebiowski
Ranch Hand
Posts: 213
Eclipse IDE Java Tomcat Server
  • 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.
 
debraj mallick
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 Java Tomcat Server
  • 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?
 
smriti solutions
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic