Brad, I disagree with you. I don't think writing empty string as "" or " "
makes any difference. As for the problem, I can only say after looking at
the code.
Regards,
Rohit.
----- Original Message -----
From: Brad Johnson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 03, 2000 12:22 AM
Subject: Re: Access problem
> um... your empty string should probably be "" instead of " "...
>
> brad
>
> -----Original Message-----
> From: Vaijayanthi Kolli [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 02, 2000 11:27 AM
> To: [EMAIL PROTECTED]
> Subject: Access problem
>
>
> 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
>
>
___________________________________________________________________________
> 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