Source code for implementing Search feature using servlet (JSP/JSF/Java method)

Discussion in 'Java' started by QuirkyCindy, Jun 18, 2008.

Thread Status:
Not open for further replies.
  1. QuirkyCindy

    QuirkyCindy New Member

    Joined:
    Jun 18, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi all,

    I'm a newbie but a keen learner.

    Please help me with the source code for implementing Search feature using servlet (JSF/JSP/Jave). I've tried but can't seem to work. Could someone give me an example using the data below:- (search by Name, Dept or 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
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice