File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes struts2 jquery autocompleter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 jquery autocompleter" Watch "struts2 jquery autocompleter" New topic
Author

struts2 jquery autocompleter

pooja par
Ranch Hand

Joined: Feb 14, 2011
Posts: 31
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

Joined: Feb 14, 2011
Posts: 31
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

Joined: May 05, 2010
Posts: 213

Thank you for the example. I was just about to give up trying to get the autocompleter to work.
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hope this link would help you
http://www.weinfreund.de/struts2-jquery-showcase/index.action
Richard Golebiowski
Ranch Hand

Joined: May 05, 2010
Posts: 213

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

Joined: Jan 24, 2012
Posts: 3
Thanks, exactly the I type of example I was looking for. The code at google isn't clear to me also.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts2 jquery autocompleter