Hi Bradley,
This is a problem I think with ORACLE. Just replace ' by ''(two quotes) in
the name and everything will work fine. For example change 'Al D'ellrio' to
'Al D''ellrio'.
Vivek
-----Original Message-----
From: Bradley McLain [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 04, 2000 9:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Illegal Servlet Call To Database?
use a prepared statement -- it will take care of encoding issues for you..
bradley mclain
>From: Michael <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Illegal Servlet Call To Database?
>Date: Tue, 4 Apr 2000 09:16:51 -0400
>
>My servlet is making a JDBC request to a database with text that contains
>'.
>Example:
>
>select * from clients where name = 'Al D'ellrio'.
>
>The system returns an error, assuming that the ' is an error. How would I
>enter the character?
>
>
>Regards to all,
>
>
>
>Michael Katz
>
>___________________________________________________________________________
>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
______________________________________________________
Get Your Private, Free Email 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