>Well, I have a finger or two in both specs ;-)

While I'm at it, and since you are working on the specs, you might be
interested in knowing another (sort of) odd behavior in Tomcat 5 when the
Jsp Document syntax is used.

When I use the <c:import> tag from JSTL I get this exception when I try to
pass in a EL expression as the "url" attribute:
"According to TLD or attribute directive in tag file, attribute url does not
accept any expressions"

This happens with most of the c:* JSTL tags. When the tag is changed to
c_rt:*, everything works fine.

The url attribute id clearly stated to be able to be dynamic in the JSTL 1.0
spec. It seems as is if the container when it translates the Document into a
servlet, or some sort of intermediant jsp file turns the ${elExpression}
into a <%= elExpression %>, thereby invalidating the c:* tags. Like I said,
it's not difficult to get around it, you can just change the c:* into a
c_rt:*, but I don't think that this is the behavior intended from the spec
writers, since from what I've learned, the use of c_rt:* should be
discouraged in favor of c:* tags.

Example (produces an error):

<?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";
xmlns:c_rt="http://java.sun.com/jstl/core_rt";
version="2.0">
<jsp:directive.page
contentType="text/html"
pageEncoding="ISO-8859-1"/>
<c:import url="${sessionScope.skin}"/>
</jsp:root>

BTW, earlier discussed bug is now submitted.

/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

Reply via email to