Bug 7746 - c:out escapes HTML .. not WML
Summary: c:out escapes HTML .. not WML
Status: RESOLVED INVALID
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: 1.0B1
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-04 16:19 UTC by aspyker
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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:

http://developer.openwave.com/htmldoc/41/wmlref/index.html

specifically:

http://developer.openwave.com/htmldoc/41/wmlref/intro4.html#575559
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.