tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ignacio Iborra" <>
Subject Expression language in Tomcat 6
Date Fri, 16 Nov 2007 09:22:29 GMT

After some hours trying to execute a simple example of a taglib
(displaytag), just one moment before going completely crazy, I've found the

I wanted to make a query to a database and show the results in a table using
the display tag library. But the expression language was not recognized by
Tomcat. After searching in Google, I've found that I have to put some
attributes in the web-app tag of my web.xml in order to enable this feature.
Something like this:

<web-app id="WebApp_ID" version="2.4"



With this schema I can put EL in the attributes of the tags I use, such as:

<sql:query dataSource="${db}" var="result">

... but I cannot put them OUTSIDE the tags, I can't do something like this:

Hello ${}

To achieve this, I have to add some tags in web.xml:


So my question is... Why the hell Tomcat does not accept EL by default in
ANY place of ANY page? How is it possible that, after some years of
standardization of the EL Tomcat rejects it outside the tags by default? Any
other clean idea to make this work in a web application without introducing
this code in each web.xml?

Thanks in advance.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message