Hi!

We are currently migrating a web app from 5.5.20 to 6.0.26 (with identical 
behaviors on different operating systems). On a few pages, we are experiencing 
a different behavior related to EL expressions.

In the example page below and with tomcat 5.5.20, the expression in the line 
<html:link href="#${currentBlockName}"
was correctly evaluated. With tomcat 6.0.26, it is not evaluated, resulting in 
links that directly contain the literals #${currentBlockName}.

I know that in EL 2.1, ${} (immediate evaluation) and #{} (deferred evaluaton) 
are two possible types of eval expressions, but why is the combination of #${ a 
problem if it occurs in a tag attribute?

Other expressions are evaluated without problems, so with have no general 
problem with them (no general deactivation of EL or something like that). It is 
always the combination of #${ in tag attributes.

Can somebody help?

Best regards,
Oliver
  

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
...
...
<html:link href="#${currentBlockName}"
        onclick="javascript:deactivateAlert();" >
        <html:img src="static/images/knwebstd/delete16.gif" border="0" 
styleId="deactivateAlertIcon"
        alt="<bean:message bundle='monvis' 
key='monitoringResults.deActivate.Tooltip' />"/>
</html:link>
....
....


Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), 
Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnetté, Mark 
Reinhardt, Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, 
HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & 
Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: 
Klaus-Michael Kuehne



Reply via email to