|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
Can you post some code? There isn't enough information in your post to tell what the problem is.
__________________
-james |
|
#3
|
||||
|
||||
|
[/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.
__________________
~ishnid; Have you tried: [ search.cpan.org | perldoc | Java API | mysql.com | google ] Apostrophes are NOT used for possessive pronouns or for noun plurals, including acronyms. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Servlets and accessing SQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|