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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying quotes on a jsp page

Status
Not open for further replies.

Gangrel

Programmer
Oct 18, 2001
49
CA
This is probably very simple, but I'm not sure how to handle this.

We have a app built on jsp, beans, struts, and uses DB2 as the database. users enter information on forms, which gets stored on the DB. If they use quotes on the form, it gets stored as &quot. Is this a DB2 thing that does this automatically, or would this be buried in our code somewhere?

The real question is this.... If the users go back and try to retrieve the information, it gets displayed on the screen as &quot, instead of ". I'm assuming we need a routine to convert this at run time, correct?

Or is there another way around it?
 
Does it store as :

Code:
"

OR


Code:
&quot

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
It's stored as quot;


We also appear to have some issues with some characters getting translated into little boxes..... I assume this if from users using special charactes on a french keyboard. (we're in Canada) Is this a safe assumption
 
Hi

Ok, you wrote what is displayed, but not what is in the page source. Could be [tt]"[/tt].

Regarding the undisplayed characters, you did not mentioned what codepage is set for that document, and if your server sends such information in the HTTP header too.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top