This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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
how to deal with the special character in java and oracle!!!
doubt in JSTL c:out
String and StringBuffer