Re: Simple Escape Question

2006-04-14 Thread apl
Hello James; Is there a simple Java command that will escape my string for a raw sql statement? AFAIK, if you use a JDBC "PreparedStatement", this happens automatically, otherwise you have to do it yourself. Would love to hear news to the contrary! cheers. ___ Andrew Lindesay www.lind

Re: Simple Escape Question

2006-03-28 Thread James Cicenia
I had solved my issue already with some simple regex, but this Formatter is a very nice addition as I will solve a small issue I was having with text being sent as HTML Email and not holding the formatting. I hadn't gotten around to addressing it and was going to use the opportunity to integr

Re: Simple Escape Question

2006-03-28 Thread Jerry W. Walker
Hi, James, Take a look at TextDisplayFormatter.java by Jonathon Rochkind: http://www.wodeveloper.com/omniLists/webobjects-dev/2001/May/ msg00252.html Regards, Jerry On Mar 23, 2006, at 9:02 AM, James Cicenia wrote: It's early ... Is there a simple Java command that will escape my str

Re: Simple Escape Question

2006-03-27 Thread Kieran Kelleher
James, IIRC there is a class named StringEscapeUtils that escapes strings for most any purpose in the jakarta commons lang project. Regards, Kieran On Mar 23, 2006, at 9:02 AM, James Cicenia wrote: It's early ... Is there a simple Java command that will escape my string for a raw sql st

Simple Escape Question

2006-03-23 Thread James Cicenia
It's early ... Is there a simple Java command that will escape my string for a raw sql statement? Basically I need to escape single quotes for sure... maybe others? Or do I have to manually parse the string? Thanks James Cicenia ___ Do not post