Thank you everybody, it is working now. Case was as mentioned by Zvika Markfeld I tried to read the same value twice in a ResultSet.
 
Regards,
 
Nilantha   
----- Original Message -----
Sent: Friday, January 04, 2002 7:22 AM
Subject: Re: Servlet - Value of a checkbox

Hi,
What does the rs reference stand for? If it is a ResultSet object, than your problem might be that you are trying to read the same value from a ResultSet twice, which, misteriously enough, generates an exception. Use an intermediate variable instead.
zm.
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Galbreath
Sent: Friday, January 04, 2002 2:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Servlet - Value of a checkbox

Your concatenation and non-escaped double quotes are all screwed up.
 
Mark
-----Original Message-----
From: Wasala Mudiyanselage Nilantha Piyasiri
Sent: Friday, January 04, 2002 5:23 PM
 
Following line is not working. Could I use rs.getSrting to give the value to checkbox. Please help me
 
out.println ("<tr><td><input type=checkbox name=item" + "value="+rs.getString ("book")+"></td><td>"+rs.getString ("ID")+"</td><td>"+rs.getString ("book")+"</td><td>"+rs.getDouble("price")+"</td></tr>");
 
 
Regards,
 
Nilantha

Reply via email to