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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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!!!
String and StringBuffer
doubt in JSTL c:out
accept command in .sql file not working from ant
how to deal with the special character in java and oracle!!!