Hi everybody,
    Thanks a lot for the responses yesterday.It worked out fine.
I have another problem.
   I am submitting the contents of a form to an access database using
servlets.
   In the database I have given the default value for each of the fields to
be an empty string(" ").
  When I retrieve the values,I only want to display those fields that have
values in them.I ,therefore,try to compare the value of the fields to an
empty string.
  The problem is this logic works for few records and doesn't seem to work
for others.It gives me a NullPointerException.It again works fine if I
compare the values against a null value(again only for a few records ).
  My question is since I have given a default value of (" ")for fields that
do not have any value,upon retrieval shouldn't it work when I compare them
to an empty string(" ")?
  Kindly help.
   Thanks in advance.

Vaijayanthi.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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

Reply via email to