This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 autocomplete" Watch "struts2 autocomplete" New topic
Author

struts2 autocomplete

pigouina madagascar
Greenhorn

Joined: Mar 23, 2009
Posts: 1
hi,

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?

thanks

David Newton
Author
Rancher

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?
 
wood burning stoves
 
subject: struts2 autocomplete
 
Similar Threads
How the The WEB-INF/decorators.xml is linked to a jsp page made up of Struts Tags.
jsp
problem designing jsp using struts 2.0 tags
Struts 2 - Set Action Attribute From Jsp
pass values between pages using Struts2