I am using for my project Struts 2 and Hibernate/Spring dependency injection. My project is just a simple CRUD application. I am trying to implement an autocomplete search of data in the database, but I am not sure which is the most appropriate approach using the above framewors(I am new to them). If anyone can point me to a working example using the framewors or give me any ideas.
(If you're talking about the S2 jQuery tags, okay, but if we're talking about the Dojo tags, they're deprecated, are not supported, and use a *very* old version of Dojo. I cannot recommend them.)
David, I agree with what you said. Actually, between the two I mentioned I mostly use the AjaxTags. I went with Ajaxtags because it is a technology that was currently being used where I work. For someone looking for an autocompleter there are a lot of choices out there so just do your research and pick one that your comfortable with.
M Marin
Ranch Hand
Joined: Feb 20, 2010
Posts: 32
posted
0
Thank you,
Now, I know where to start.
I will try the Struts Autocompleter first and If I get the time JQuery tags.
MJ
Sunil Moharana
Greenhorn
Joined: Oct 15, 2010
Posts: 1
posted
0
Hi, I am sunil,completely new to coderanch and also new to java.I am working on a knowledge base project.In this project a search engine is implemented and the technologies are struts2,hibernate,jsp etc.... I want to implement autocomplete.But i am not able to do that.Please some one give tne complete steps how i 'll implement ?There is a problem table,in which problem title field is there.I want to search on problem title and autocomplete also.Please help ....
List<Pazienti> taList = sessionh.createQuery("from Pazienti").list();
Iterator<Pazienti> itr = taList.iterator();
while (itr.hasNext()) {
Pazienti ta = itr.next();
while (itr.hasNext()) {
String surn = ta.getPaz_cognome();
PrintStream out = null;
out.println(surn);
}
}
Unfortunately I'm getting something like this:
net.lupo.contact.model.Pazienti@9c939
how do I have to iterate on the list to retrieve a list of username like this ?
Andrew
Alan
Antony
mark
A man who works with his hands is a laborer; a man who works with his hands and his brain is a craftsman; but a man who works with his hands and his brain and his heart is an artist. Louis Nizer.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Autocomplete search with Struts and Hibernate