When i use the xml syntax for a jsp page with Tomcat 5.0 Alpha and try to reference a EL parameter in a template data attribute, the EL expression gets output as plain text, i.e. it is treated as quoted plaintext within the attribute. Is this the correct behaviour, or is it a bug in Tomcat? The behavior seems a bit strange to me, I'd expect it to output the parameter. I've been trying to find a clarification in the JSP 2.0, and JSTL 1.0 specification but unfonrtunately no luck so far. I'm also aware that I could use JSP 2.0 tag <jsp:element> and <jsp:attribute> to work around the problem, but if it can be avoided I'd rather do it the other way, since I find the other way to do it cleaner.
Example: <?xml version="1.0" encoding="ISO-8859-1"?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jstl/core" version="2.0"> <jsp:directive.page contentType="text/html" pageEncoding="ISO-8859-1"/> <html> <body> <div class="${1+2}">${1+2}</div> </body> </html> </jsp:root> Regards Erik Beijnoff Addsystems [EMAIL PROTECTED] =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com