I need to display quotation marks ( ", ' ) in a text box in a jsp file
I am working on a web based application. My GUI screen has a text box (input type="text"). The requirement is that the text box should allow any special character to be entered and persist the data in the following screens.
The following line in my jsp gives me the problem
<input name="txt" type=text value="<%=(String)data.getAttribute("txt")%>" size="6" maxlength="5"></input>
when I try to enter some data in the text box, say, "1234", the text box displays blank when the page is visited again.
I tried removing the double quotes in the code,ie, value=<%=(String)data.getAttribute("txt")%> But the problem still exists.
As I want to display any special character, I am unable to use single quotes ' ' too. Please suggest me a solution.

