Results 1 to 5 of 5
  1. #1
    jazz2k8's Avatar
    jazz2k8 is offline Senior Member
    Join Date
    Apr 2008
    Posts
    150
    Rep Power
    7

    Default regarding searching in jsp

    i want to create a login form.After the user has entered the username and i will fetch the user names data from database server and i have to compare the user entered user name with user names fetched from the database server.If both the user names are matching valid user otherwise invalid user.

  2. #2
    M B Juventini is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default Re: regarding searching in jsp

    try the next link

    login in jsp

    i think this will be okay
    i did it on my site and it connected and i can log in with any user in my database

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: regarding searching in jsp

    Quote Originally Posted by M B Juventini View Post
    try the next link

    login in jsp
    The vast majority of the examples on that site are examples of bad coding.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    M B Juventini is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default Re: regarding searching in jsp

    Quote Originally Posted by DarrylBurke View Post
    The vast majority of the examples on that site are examples of bad coding.

    db
    yes i know i tried alot of bad codes but this code i tried it from 2 hours and it worked


    this is pics from my local website

    regarding searching in jsp-kop.jpg

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,820
    Rep Power
    19

    Default Re: regarding searching in jsp

    And that link is a classic example.
    1. they have the database access code in a JSP rather than a servlet, as it should be done.
    2. they do not use a PreparedStatement, and concatenate the query together (can you spell 'SQL injection'?).
    3. they don't close off their resources (can you spell 'connection leak', or 'cursor leak'?).
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Searching still OK?
    By Jodokus in forum Suggestions & Feedback
    Replies: 2
    Last Post: 05-22-2011, 10:29 PM
  2. Searching
    By Harmesh Goyal in forum AWT / Swing
    Replies: 0
    Last Post: 03-02-2011, 02:36 PM
  3. Searching
    By peliukasss in forum Lucene
    Replies: 0
    Last Post: 04-07-2010, 01:05 AM
  4. Searching XML file using DOM
    By simon in forum XML
    Replies: 5
    Last Post: 03-30-2009, 01:27 AM
  5. searching
    By nalinda in forum New To Java
    Replies: 3
    Last Post: 12-06-2007, 02:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •