Below is the complete HTML and it is also generated by a servlet. Getting
NUll from DB is not possible as when I give a name to the "vlaue" servlet is
working.

Regards,
Nilantha


<html>
<head></head>
<body>
<P>
<b>Welcome Nilantha Piyasiri</b>
<form method=POST action=http://localhost:8080/examples/servlet/bookServlet>
<p>Slect type<select size=1 name=types>
<option>java</option>
<option>VB</option>
<option>ASP</option>
<option>XML</option>
</select></p>
<p><input type=submit value=Submit name=B1></p>
</form>
</body>
</html>


----- Original Message -----
From: "Sandy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 2:11 AM
Subject: Re: Servlet - Value of a checkbox


> the html output u have send is only the header. i want
> to see the compelete value. I also think that u may be
> getting NUll from DB. plz send me the compelete HTML.
>
> --- Wasala Mudiyanselage Nilantha Piyasiri
> <[EMAIL PROTECTED]> wrote:
> > I placed space between item and value as shown
> > below. But still the problem
> > persisting. But when I hard coded the value it is
> > giving the required value.
> >
> > out.println ("<TABLE>");
> >    while (rs.next()){
> >                                 out.println("<form
> > method=POST
> >
> action=http://localhost:8080/examples/servlet/cartExample>");
> >     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>");}
> >     out.println ("</table>");
> >     }
> >
> >
> > -------------------
> > HTML output
> > --------------
> > <html>
> > <head></head>
> > <body>
> > <TABLE>
> > <form method=POST
> >
> action=http://localhost:8080/examples/servlet/cartExample>
> > </body>
> > </html>
> >
> > Regards.
> >
> > Nilantha
> >
> >
> > ----- Original Message -----
> > From: "Sandy" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, January 04, 2002 1:12 AM
> > Subject: Re: Servlet - Value of a checkbox
> >
> >
> > > can u send us the generated HTMl instead !!
> > >
> > > --- "Sabari Arasu (CTC)" <[EMAIL PROTECTED]>
> > wrote:
> > > > Giving a space in between won't be a problem..
> > > >
> > > > Sabari Arasu
> > > >
> > > > > -----Original Message-----
> > > > > From: Sandy [SMTP:[EMAIL PROTECTED]]
> > > > > Sent: Friday, January 04, 2002 2:01 PM
> > > > > To:   [EMAIL PROTECTED]
> > > > > Subject:      Re: Servlet - Value of a
> > checkbox
> > > > >
> > > > > PLz. Note that u have not entered any space
> > > > between
> > > > > "item" & value
> > > > > name=item" + "value="+rs.getString("book")
> > > > >
> > > > > --- Rohan Shrinivas Desai
> > > > <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > > > what exactly happens when u say it isn ot
> > > > working ?
> > > > > >     any exception ??
> > > > > >     kindly let us know  so that we can
> > suggest
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Wasala Mudiyanselage Nilantha Piyasiri
> > > > > > [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Saturday, January 05, 2002 3:53 AM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: Servlet - Value of a checkbox
> > > > > >
> > > > > >
> > > > > > Dear All,
> > > > > >
> > > > > > 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
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > =====
> > > > > luv,
> > > > > sandy
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Send your FREE holiday greetings online!
> > > > > http://greetings.yahoo.com
> > > > >
> > > > >
> > > >
> > >
> >
> __________________________________________________________________________
> > > > > _
> > > > > To unsubscribe, send email to
> > > > [EMAIL PROTECTED] and include in the
> > > > > body
> > > > > of the message "signoff SERVLET-INTEREST".
> > > > >
> > > > > Archives:
> > > >
> > >
> >
> http://archives.java.sun.com/archives/servlet-interest.html
> > > > > Resources:
> > > >
> > >
> >
> http://java.sun.com/products/servlet/external-resources.html
> > > > > LISTSERV Help:
> > > > http://www.lsoft.com/manuals/user/user.html
> > > >
> > > >
> > >
> >
>
___________________________________________________________________________
> > > > To unsubscribe, send email to
> > [EMAIL PROTECTED]
> > > > and include in the body
> > > > of the message "signoff SERVLET-INTEREST".
> > > >
> > > > Archives:
> > > >
> > >
> >
> http://archives.java.sun.com/archives/servlet-interest.html
> > > > Resources:
> > > >
> > >
> >
> http://java.sun.com/products/servlet/external-resources.html
> > > > LISTSERV Help:
> > > > http://www.lsoft.com/manuals/user/user.html
> > > >
> > >
> > >
> > > =====
> > > luv,
> > > sandy
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Send your FREE holiday greetings online!
> > > http://greetings.yahoo.com
> > >
> > >
> >
>
___________________________________________________________________________
> > > To unsubscribe, send email to
> > [EMAIL PROTECTED] and include in the
> > body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives:
> >
> http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources:
> >
> http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help:
> > http://www.lsoft.com/manuals/user/user.html
> > >
> >
> >
>
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED]
> > and include in the body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives:
> >
> http://archives.java.sun.com/archives/servlet-interest.html
> > Resources:
> >
> http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help:
> > http://www.lsoft.com/manuals/user/user.html
> >
>
>
> =====
> luv,
> sandy
>
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to