Re: checkbox
Posted by: Roland Bouman
Date: March 25, 2006 07:48AM

>hiya roland its me again!!! sorry to keep annoying you like this hehe
It's not annoying me. I do think you would be more successful if you post questiions like these on a forum that's especially dedicated to servlet programming.

Anyway, I think a checkbox only shows up in the request when it is checked. In such a case, the value of the checkbox is always on.

So, you should ensure that the name of the checkboxes are unique, and contain or consist out of the string you are now using for the value attribute. When handling the request, you should iterate through all the parameters (I think there is something like request.getParameterNames() which returns an array of Strings), and when you find a name of one of your checkboxes and "on" for the value, you should extract the original value out of the parameter name, and use it to insert the data.

Good Luck, hop it helps.

Options: ReplyQuote


Subject
Written By
Posted
March 02, 2006 05:32PM
March 03, 2006 04:26PM
March 07, 2006 04:24AM
March 07, 2006 05:08AM
March 07, 2006 10:53AM
March 07, 2006 11:06AM
March 07, 2006 11:27AM
March 07, 2006 11:27AM
March 07, 2006 02:48PM
March 07, 2006 04:05PM
March 07, 2006 04:19PM
March 12, 2006 06:07PM
March 13, 2006 07:00AM
March 25, 2006 06:17AM
Re: checkbox
March 25, 2006 07:48AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.