This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes struts2 autocomplete Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 autocomplete" Watch "struts2 autocomplete" New topic

struts2 autocomplete

pigouina madagascar

Joined: Mar 23, 2009
Posts: 1

i have a form in my jsp and i want to implement autocomplete. when i insert a letter in the textfield it should show a list with all the Country names that begin with that letter and are stored in the database.

so far i have something like this, but it doesnt work can somebody help me?


David Newton

Joined: Sep 29, 2008
Posts: 12617

Please read TellTheDetails from the HowToAskQuestionsOnJavaRanch FAQ.

If nothing else, the "href" value should be prefaced with "#" as per the autocompleter tag docs:OGNL values created in the stack context (in other words, not pushed on to the stack itself) require the "#" prefix.

Have you confirmed that a request is being made (via Firebug, proxy, or other snooping mechanism)? Have you included the <sx:head> tag? If so, have you set "debug='true'" and are there any dojo errors?
I agree. Here's the link:
subject: struts2 autocomplete
It's not a secret anymore!