This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Keeping quotes from column in my table? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Keeping quotes from column in my table?" Watch "Keeping quotes from column in my table?" New topic
Author

Keeping quotes from column in my table?

Moined Mogul
Ranch Hand

Joined: Jul 11, 2001
Posts: 33
Does anyone know how I could ensure that quotes were never permitted to be added into my database table where the input is coming from user input in a JSP???
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

can you not just check for a quote in the String before you insert into the database?

Jamie

[This message has been edited by Jamie Robertson (edited August 08, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Keeping quotes from column in my table?
 
Similar Threads
How to escape quote characters (")?
SQL syntax
Creating an HTML table in a Bean
Escape single quotes
dynamic jsp page (can't include %>)