Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Displaying double quotes in jsp form element

843836Feb 5 2004 — edited Feb 5 2004
I have a form with a textbox. The user enters the following: 123"456
I write the value to the db using prepared statements and it is saved as: 123"456
When i retrieve the value using prepared statements the value is: 123"456
When my jsp attempts to display this value in a textbox, the text box's value is set as value="123"456".
As a result, only 123 is displayed in the form.

Surely there is an easy way to handle this without parsing every string returned from the db. Any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2004
Added on Feb 5 2004
10 comments
1,035 views