This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
HI all I have a problem . I am having html code genereation in the servlet where i have a checkbox , which when clicked will pass on the id , i am not able to do that, here is the code pw.println( "<TD>" ); pw.println( "<input type=\"checkbox\" name=\"chkTsk\" value=\""); pw.println(task.getId()); pw.println( "\""); pw.println( " unchecked>" ); pw.println( "</TD>" );
when the ckeckbox is checked, its not being able to take the id. What could be the problem & solution? Thanks
yes, i do see the id in the view source. But the problem is there is more than one check boxes in the form, i might check few of them & then submit the form, while parsing the valuesi.e id associated with those check boxes, its giving arrayoutofindex error for those checkboxes which r not checked,
Joined: Sep 11, 2002
Can you send the following code snippets: 1. HTML View Source (just the parts with the checkboxes) 2. JSP/Servlet Code (just the part that is trying to retrieve the checkbox parameters)
Note that this forum allows for UBB Code. There are buttons just below the text area where you can wrap items in the 'code' tags. That way, it is easier to read the code. [ June 27, 2005: Message edited by: Sharad Agarwal ]