Hi all,

Could someone help me with the source code to implement a search feature using servlet (JSP/JSF/Java method)???

Based on the examples below:- (Search by Name, Dept and DOB)

Employee Table

Id
Name
Dept
DOB
Date

Search By Name, Dept, DOB

Id Name Dept DOB Date
10 Judy BBB 01/01/2008 01/01/2008
11 Lily AAA 01/01/2008 01/01/2008
12 Rose CCC 11/01/2008 01/01/2008
13 James AAA 21/01/2008 01/01/2008
14 Daisy BBB 01/01/2008 01/01/2008
----------------------------------------------

Ex. Search by name - Judy

Id Name Dept DOB Date
10 Judy BBB 01/01/2008 01/01/2008
----------------------------------------------

Ex. Search by dept - BBB

Id Name Dept DOB Date
10 Judy BBB 01/01/2008 01/01/2008
14 Daisy BBB 01/01/2008 01/01/2008
----------------------------------------------

Ex. Search by dob - 01/01/2008

Id Name Dept DOB Date
10 Judy BBB 01/01/2008 01/01/2008
11 Lily AAA 01/01/2008 01/01/2008
14 Daisy BBB 01/01/2008 01/01/2008


using Servlet, example in jsf, jsp, java method

Thank you so much!!!

no, we're not going to do your work for you.
We can however point you to some existing packages that might do the trick. Check out Lucene.

no, we're not going to do your work for you.
We can however point you to some existing packages that might do the trick. Check out Lucene.

Hi jwenting,

Pls do not understood. I am not asking someone to do my stuff.
I'm just having trouble with the codes for search feature. Do not know what is wrong with my codes...just can't seem to be able to work. Besides, those data are just samples. I'm working on a more complicated set of data.

Anyway, thanks for your pointer. Will look into that... :)

You didn't post any "codes", you asked for people to provide you some...

You didn't post any "codes", you asked for people to provide you some...

I can't post the my entire code here, that's the reason I posted only a sample data to get some pointers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.