aspose file tools*
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
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."
 
wood burning stoves
 
subject: how to deal with the special character in java and oracle!!!