|Summary:||c:out escapes HTML .. not WML|
|Component:||Standard Taglib||Assignee:||Tomcat Developers Mailing List <dev>|
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 email@example.com. Thanks again.