tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: Tomcat 7 jasper-el fails to parse boolean EL statement
Date Tue, 04 Oct 2011 04:17:01 GMT
2011/10/4 Nestor Urquiza <>:
> Downloading latest jasper-el
> (from August 2011 which I consider latest - please correct me if I am
> wrong) or even copying the jar from a previous tomcat installation
> allows ${} to work. The version of jasper-el shipped with
> tomcat 7.0.22 does not. Is that a bug in jasper-el-6.0.33.jar?

You should download ASF software from download pages on * sites. :)

That jar is just some random piece of Tomcat 6.0.33.  You cannot
download it and drop into any other Tomcat version.

It is useful if you need to compile your own code that uses those
internal APIs of Tomcat, but you should not use it at runtime at a
proper Tomcat instance.

If you look into META-INF/MANIFEST.MF file inside the jar you should see that
Specification-Title: Apache Tomcat
Specification-Version: 6.0

> Furthermore, the alternative ${owner.isNew()} which does work in
> Tomcat 7.0.22 default jasper-el fails when I use jasper-el-6.0.33.jar.

 ${owner['new']} is accessing property "new" of object "owner".

That is exactly the same that you tried with ${}.

The ${owner.isNew()} expression is a different beast - it is a method call,

and method calls support is introduced in JSP 2.2/Expression Language
2.2.  You will have to use Tomcat 7.0.

> I forgot to thanks Mark for the flag.
> Thank you for taking your time and reading.

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message