[Bear: edited subject to remove shouting] [ May 24, 2004: Message edited by: Bear Bibeault ]
"Now that only if I select one check box then in that row the text box should appear otherwise,it should disappear.then after entering value in the text box"
How are you going to put a value in a text box that just disappeared ?
Furthermore, I'd use a radio button instead of a check box. If you want users to edit just one row, instead of multiple rows at a time, don't use a check box.
posted 16 years ago
Dear sir, Sorry for not mentioning the problem properly.Actually What I mean is I can have multiple check boxes selected,and only for those check boxes that I select I should have the textbox in that row for one column.likewise,I can have any no of checkboxes selected and after selection all the fields will be readonly except the textbox field (i.e)column in which the user enter the value and if I click the submit button,the entire row should be inserted into the DB (by invoking EJB METHOD). Kindly excuse me for the trouble and answer me as soon as possible. The matter is most urgent.
Sorry to answer you so late but I've given myself a few days of rest. ABout your question, I must admit I've never done this kind of coding before. But as the matter seems interesting, I got a look around. And at java.sun.com I found the following answer to a question that is a lookalike of your own question :
GetParameterValues("name of checkbox") will return values of checked checkbox elements.
Example: if you have following HTML-code: <pre> <input type="checkbox" name="foo" value="asd"> <input type="checkbox" name="foo" value="dsa"> </pre> If only first one is checked GetParameterValues("foo") will return String with String "asd". If both are checked you'll get String with Strings "asd" and "dsa" and so on..