Hi Andreas,

that's it, thank you!
- But now with the drawback that characters like & are not transformed
in Character Entity References (&).
But I think, I can life with that. :-)

BTW: Would it not be nice if the filtering would be able to recognize
Entity or Decimal References and do *not* treat them?
Then it would be still possible to *display* "&#x1234" by having in the
Bean the String "&#x1234".


Hartmut


[EMAIL PROTECTED] schrieb:
> 
> Hi
> 
> There is an attribut called "filter" in <bean:write>. The default is set to
> true. Set it to false and try again.
> 
> Cheers
> Andy
> 
> -----Ursprüngliche Nachricht-----
> Von: Hartmut Bernecker [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 20. Juni 2001 11:10
> An: [EMAIL PROTECTED]
> Betreff: Displaying unicode hexadecimal character references with Struts
> 
> Hello,
> 
> HTML 4.0 allows to display unicode characters by using Decimal
> (&#123456;) or Hexadecimal (&#x00FE;) Character References.
> Now, if a bean property contains some String with character references
> (e. g. new String("&#12456;&#12521;&#12540;");) then I expect a correct
> output when displaying that bean-properties with a JSP-page.
> But what happens? - The output to the browser is not
> "&#12456;&#12521;&#12540;" (which would be displayed correct), but
> &amp;#12456;&amp;#12521;&amp;#12540; which is displayed as
> "&#12456;&#12521;&#12540;" - what is not nice!
> 
> Why that behavior?
> How to switch off that mechanism?
> 
> I appreciate any hint!
> 
> Cheers
> Hartmut

Reply via email to