Use the single quote (') in the HTML that has double
quotes.
Like this:
<input type="text" value='"Hello"'>
--- Christoph Kukulies
<[EMAIL PROTECTED]> wrote:
>
> Sorry that this is not directly tomcat related but
> in the course of
> writing a jsp/servlet application I came across the
> problem
> that I'm generating a FORM which contains
> something like:
>
> fprintf(yyout,"<input type=\"hidden\" name=line%d
> value=\"%s\">\n",p,s);
>
> But string s can contain " quotes. In order to have
> the quotes later
> appear in the html page, what do I have to do to
> quote the quotes?
>
> --
> Chris Christoph P. U. Kukulies
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/