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.

[805 byte] By [Jyolsnaa] at [2007-10-2 16:48:28]
# 1
try to nuse escape characters \" and \'
jgalacambraa at 2007-7-13 17:59:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
>when I try to enter some data in the text box, say, "1234", the text box displays >blank when the page is visited again. What it means, i think ur enering 1234 in box then submiting the form and after that u want 1234 result in text box is that so?
kailash.gunda at 2007-7-13 17:59:33 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...