Dear Tomcat users,

I'm updating Tomcat from 6.0.18 to 6.0.20.
My web-app use JSP 2.1 and JSF 1.2 (v. 1.2_12).
The first difference I've noticed is that the following code snip
(part of a JSPX page for outputting an HTML page) get unparsed in
Tomcat 6.0.20:

--- [snip] ---
...
<link rel="stylesheet"
href="#{facesContext.externalContext.requestContextPath}/resources/theme/current/css/screen.css"
type="text/css" />
<link rel="shortcut icon"
href="#{facesContext.externalContext.requestContextPath}/resources/theme/current/img/favicon.ico"
type="image/x-icon"/>
...
--- [/snip] ---

With Tomcat 6.0.18 the expression #{} is successfully evaluated while
with Tomcat 6.0.20 that is printed as-is.

I've looked on the JSP 2.1 specs and from Section 1.2.4:
"...              in JSP 2.1, #{} expressions are only allowed for tag
attributes that accept deferred expressions. #{expr} will generate an
error if used anywhere else."
The behavior of Tomcat 6.0.20 seems to be the right one (while 6.0.18
was wrong).

So, before changing all my JSP pages I ask you for a confirmation.

Thank you very much for any feedback!!!!

Cheers,

-- Marco

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to