*
The moose likes Struts and the fly likes Autocomplete List confusion 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 "Autocomplete List confusion" Watch "Autocomplete List confusion" New topic
Author

Autocomplete List confusion

Abhilash Chander
Ranch Hand

Joined: Oct 18, 2009
Posts: 39
Hi All,
I'm implementing automcomplete in my struts 2 project. I have a list of around 15000 values in my database, which will be displayed as suggestions to the user. Now I am not really sure wheather I should fetch them everytime user enters a new letter in to the textbox. Because that will make the autocomplete very slow and of no real use to the user. As an alternate to that I was thinking of storing all the values in some scope of my application like Application scope because the auto complete will appear on each page of my project. But is that a good practice I'm not sure. So what can be the most efficient way to store these values so that the response of autocomplete is good and can be helpful to the users. Thanks for your time and efforts.


Regards
Abhilash
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Autocomplete List confusion
 
Similar Threads
if a use a folder my code cant read the path
turn autocomplete off in Struts?
html:select html:options error, no getter. please help
My project detailes here. Waiting on exam and submit it
Auto Complete in J2ME