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

Reply via email to