Bug 7746

Summary: c:out escapes HTML .. not WML
Product: Taglibs Reporter: aspyker
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Severity: enhancement    
Priority: P3    
Version: 1.0B1   
Target Milestone: ---   
Hardware: All   
OS: All   

Description aspyker 2002-04-04 16:19:46 UTC
We ended up writing an equivalant to c:out at our company.  We do HTML and WML
interfaces.  If you look at the 4.1 Spec, the escaping of WML is the same as
WML, with one addition ($).  In WML they use $ to denote variables and a true $
is represented as "$$".  This means if it isn't escaped a translation error will
occur on the phone/emulator.

I would suggest as HTML might not be the only output format of c:out that it be
enhanced to be able to add more escapes to the list of escape mappings.  To
check out the wml spec, look here:



Comment 1 Shawn Bayern 2002-04-04 18:03:29 UTC
Thanks for your comments.

Two responses:

 - The 'escapeXml' behavior actually escapes XML metacharacters, not HTML
   characters.  That is, JSTL is not designed to accommodate particular
   markup languages beyond XML in general; it has been able to stay neutral
   in this regard.

   So the request you're making is really to introduce awareness of markup
   lanugages like HTML and XML into JSTL tags.

 - Thanks for using Bugzilla, but it's for bugs in the reference implementation,
   not suggestions for the spec.  To submit suggestions about the JSTL
   spec, it's best to mail jsr-52-comments@jcp.org.

Thanks again.