February 12th, 2003, 10:25 AM
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.
February 15th, 2003, 12:25 AM
Can you post some code? There isn't enough information in your post to tell what the problem is.
February 19th, 2003, 07:12 AM
[/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.