This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Database Search From Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Database Search From Servlet" Watch "Database Search From Servlet" New topic

Database Search From Servlet

Vikas Aggarwal
Ranch Hand

Joined: Jun 22, 2001
Posts: 140
Hi All,

I was wondering if there is any open source framework or tool for database searching.

For example I can define the rules for searching (basically building a query in XML instead of hardcoding it in servlet) and when servlet passed the search arguments it searches the defined database and return the results in any form e.g. ResultSet, collection etc.

Is there any such generic DB search tool? Please do let me know.

Thanks a lot.


Vikas Aggarwal
Iris Hoekstra

Joined: Aug 10, 2005
Posts: 29
I think Spring does exactly what you're describing.
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
well, i disagree with the previous poster. you are looking for a persistence / retrieval strategy. spring is a lightweight application framework.

have a closer look at
- jdo
- hibernate
- iBatis
- jdbs / stored Procedures

and see what fits your needs.


ps: and use it with spring :-)
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

We have an Object Relational Mapping forum on Javaranch.
Let me know if you want this thread moved and I will send it over there for you.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Database Search From Servlet
It's not a secret anymore!