This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes how to deal with the special character in java and oracle!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to deal with the special character in java and oracle!!!" Watch "how to deal with the special character in java and oracle!!!" New topic
Author

how to deal with the special character in java and oracle!!!

Geoffrey Ren
Greenhorn

Joined: Nov 25, 2002
Posts: 18
when I got the user inputting. For example, user input the value "test's"/"test&s"/"test\s". How to insert the value into oracle DB by jdbc.
Thanks for you reply!
John Dunn
slicker
Ranch Hand

Joined: Jan 30, 2003
Posts: 1108
<< "test's"/"test&s"/"test\s" >>
try this from java:
str = "/"test's/"" + "/" + "/"test&s/"" + "/" + "/"test\s/"";


"No one appreciates the very special genius of your conversation as the dog does."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to deal with the special character in java and oracle!!!
 
Similar Threads
how to deal with the special character in java and oracle!!!
accept command in .sql file not working from ant
doubt in JSTL c:out
String and StringBuffer
how to deal with the special character in java and oracle!!!