tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uther, James" <>
Subject %=x% expression syntax bug in XML jsp?
Date Wed, 26 Sep 2001 11:30:21 GMT
Hi All,

My reading of 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="">
< contentType="test/xml+svg" />
	String t = "test";
	String xpos = "10";

	<jsp:text><![CDATA[<?xml version="1.0" encoding="ISO-8859-1" ?>

	<svg width="100" height="100" xmlns=''>
		<text y="10"

My problem is that the 
expression is not expanded (in tomcat 4.0), so the generated SVG document
looks like

  <text y="10" x="%=xpos%">test</text>



James Uther         
Senior Software Engineer  F-Secure Corporation  

        Securing the Mobile Enterprise

View raw message