You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sergey Livanov <Se...@ukrpost.net> on 2004/09/22 17:53:41 UTC
c:out question
When data output with html elements is used <c:out value="..."
escapeXml='false/true' /> the html text is loaded as plain text.
<table width="99%" border="0" cellspacing="0" cellpadding="3" class="t11ver">
<tr align="left" valign="top">
<td width="100%" class="t10ver"><font color="#697A94"><b>
I have been changing escapeXml but I haven’t had any results.
Is there any analogues bean-write filter?
Please help me to find an error.
Sergey mailto:Sergey.Livanov@ukrpost.net
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: c:out question
Posted by Kris Schneider <kr...@dotech.com>.
Well, content-type should be a non-factor. If the value of "escapeXml" is true,
then the following conversions take place regardless:
& -> &
< -> <
> -> >
" -> "
' -> '
What does the actual HTML source look like?
Quoting Bill Siggelkow <bi...@bellsouth.net>:
> Hmmm .... use
> <c:out value="${foo.bar}" escapeXml="true"/> to filter
> <c:out value="${foo.bar}" escapeXml="false"/> to not filter
>
> If the filtering is not working then something else has already filtered
> the content; or the content-type on the page is set to plain text
> instead of text/html maybe?
>
> AFAIK the escapeXml attribute works as touted.
>
> -Bill Siggelkow
>
>
> Sergey Livanov wrote:
>
> > When data output with html elements is used <c:out value="..."
> > escapeXml='false/true' /> the html text is loaded as plain text.
> >
> > <table width="99%" border="0" cellspacing="0" cellpadding="3"
> class="t11ver">
> > <tr align="left" valign="top">
> > <td width="100%" class="t10ver"><font color="#697A94"><b>
> >
> > I have been changing escapeXml but I havent had any results.
> > Is there any analogues bean-write filter?
> > Please help me to find an error.
> >
> >
> > Sergey mailto:Sergey.Livanov@ukrpost.net
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re[2]: c:out question SOLVED
Posted by Sergey Livanov <Se...@ukrpost.net>.
Bill!
Thank you very much.
I solved my problem.
BS> Hmmm .... use
BS> <c:out value="${foo.bar}" escapeXml="true"/> to filter
BS> <c:out value="${foo.bar}" escapeXml="false"/> to not filter
BS> If the filtering is not working then something else has already filtered
BS> the content; or the content-type on the page is set to plain text
BS> instead of text/html maybe?
BS> AFAIK the escapeXml attribute works as touted.
BS> -Bill Siggelkow
BS> Sergey Livanov wrote:
>> When data output with html elements is used <c:out value="..."
>> escapeXml='false/true' /> the html text is loaded as plain text.
>>
>> <table width="99%" border="0" cellspacing="0" cellpadding="3" class="t11ver">
>> <tr align="left" valign="top">
>> <td width="100%" class="t10ver"><font color="#697A94"><b>
>>
>> I have been changing escapeXml but I haven’t had any results.
>> Is there any analogues bean-write filter?
>> Please help me to find an error.
>>
>>
>> Sergey mailto:Sergey.Livanov@ukrpost.net
BS> ---------------------------------------------------------------------
BS> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
BS> For additional commands, e-mail: user-help@struts.apache.org
--
С уважением,
Sergey mailto:Sergey.Livanov@ukrpost.net
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: c:out question
Posted by Bill Siggelkow <bi...@bellsouth.net>.
Hmmm .... use
<c:out value="${foo.bar}" escapeXml="true"/> to filter
<c:out value="${foo.bar}" escapeXml="false"/> to not filter
If the filtering is not working then something else has already filtered
the content; or the content-type on the page is set to plain text
instead of text/html maybe?
AFAIK the escapeXml attribute works as touted.
-Bill Siggelkow
Sergey Livanov wrote:
> When data output with html elements is used <c:out value="..."
> escapeXml='false/true' /> the html text is loaded as plain text.
>
> <table width="99%" border="0" cellspacing="0" cellpadding="3" class="t11ver">
> <tr align="left" valign="top">
> <td width="100%" class="t10ver"><font color="#697A94"><b>
>
> I have been changing escapeXml but I haven’t had any results.
> Is there any analogues bean-write filter?
> Please help me to find an error.
>
>
> Sergey mailto:Sergey.Livanov@ukrpost.net
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org