#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    1
    Rep Power
    0

    Servlets and accessing SQL


    I have created a database and want to access it through the web, I have created a website where this database can be viewed and searched through. Now I want to be able to delete from this database after a search has been made. I want to be able to do this using checkboxes, I am having problems passing the value that each checkbox stands for in the database to you servlet. Any help would be much appreciated.
  2. #2
  3. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Can you post some code? There isn't enough information in your post to tell what the problem is.
    -james
  4. #3
  5. kill 9, $$;
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2001
    Location
    Shanghai, An tSín
    Posts
    6,897
    Rep Power
    3886
    [/code]String[] checkboxValues = req.getParameterValues("nameOfCheckBox");[/code]

    'req' is the HttpServletRequest to the servlet.

    Returns an array of strings which holds the values of the checkboxes checked. Loop through the array to use the values.

IMN logo majestic logo threadwatch logo seochat tools logo