Hi All,
My reading of ParserXJspSaxHandler.java suggests that the shorthand
expression syntax for jsp1.3 xml documents (%=x%) is not handled in
'uninterpreted' tags (ie: tags that are not taglibs or jsp:).
Is this a bug or per spec? My reading of the spec suggests it's a bug, but i
could well be missing something.
The problem can be illustrated as follows:
take this jsp page
---------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page contentType="test/xml+svg" />
<jsp:scriptlet><![CDATA[
String t = "test";
String xpos = "10";
]]></jsp:scriptlet>
<jsp:text><![CDATA[<?xml version="1.0" encoding="ISO-8859-1" ?>
]]></jsp:text>
<svg width="100" height="100" xmlns='http://www.w3.org/2000/svg'>
<text y="10"
x="%=xpos%"><jsp:expression>t</jsp:expression></text>
</svg>
</jsp:root>
---------------
My problem is that the
x="%=xpos%"
expression is not expanded (in tomcat 4.0), so the generated SVG document
looks like
<snippet>
<text y="10" x="%=xpos%">test</text>
</snippet>
cheers,
james
--
James Uther www.F-Secure.com
Senior Software Engineer F-Secure Corporation
Securing the Mobile Enterprise