tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan <stefan.rie...@telig.de>
Subject Re: ampersand (&amp;) handling in jspx - any workaround?
Date Wed, 14 Feb 2007 19:24:21 GMT
David Smith schrieb:
> Ok... you are wrong.   An & by itself is wrong.
>
> It's a hack, but you end up having to do &amp;amp;
>
> Seems like these should be preserved instead of decoded when the 
> output is x/html. I can see it getting real ugly if you  have to 
> process a document through several transforms.   But that's just my 
> opinion.
>
> -David
>
> Leon Rosenberg wrote:
>> correct me if i wrong, but isn't &amp; forbidden in xml anyway?
>> Leon
>>
>> On 2/14/07, Stefan <stefan.riegel@telig.de> wrote:
>>> Hello,
>>>
>>> for sure, the problem is well known. jspx pages turn the "&amp;" in
>>> simple "&" which causes a lot of problems. See
>>> http://www.lunatech-research.com/archives/2006/01/20/jsp-xml-rant
>>> for details.
>>>
>>> How to avoid this problems? Or just live with it?
>>>
>>> Thanks
>>>
>>> -- 
>>> Stefan
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
So to avoid the "double-amp" I have to write a filter, which transforms 
a single "&" in "&amp;" I'll try that but it is a strange behavior of 
servlet engines. Usually you use jspx to generate XHTML or XML, as I 
need to do.

Thanks for the participation
Stefan

-- 
Stefan


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message