Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display String with Single Quotation

Status
Not open for further replies.

desiana

Programmer
Oct 31, 2001
23
0
0
MY
Currently I am doing a program in JSP, and my problem is when I want to display a string extracted from database which contains a single quotation mark e.g. 15' Monitor then the rest of the information will be displayed in the wrong column (all shifted to the left one column) in the table displayed on the screen. It will skip one information which is supposed to be displayed. Do anyone have any idea what is the problem and the solution to it ?
 
Normally the problem is getting the quote INTO the database correctly since different vendors apply different rules for quoted strings.

I can't really think of why you might be having a problem. A code snippet (and the database you are getting the data from) would help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top