Displaying double quotes in jsp form element
843836Feb 5 2004 — edited Feb 5 2004I 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?