Hi,
I'm a newbie user of jstl "expression language" .
I've got it to work *within tags*, but not in static text.
E.g:
Here's how i use it in a tag: <c ut value="${2+2}" >.
This works fine and prints out "4".
But here's how I use it in static text:
<html> This is some static text ${2+2} </html>
This does not evaluate to "4"... instead, it literally prints out ${2+2}.
I'm using tomcat 5 with jakarta's implementation for jstl.
I've even added the following to my web.xml :
< el-enabled>true < / el-enabled >
It did not help.
Am I doing it wrong ? I've double-checked with various web tutorials, and they all state that EL *should* work with static text...
Thanks !
I'm a newbie user of jstl "expression language" .
I've got it to work *within tags*, but not in static text.
E.g:
Here's how i use it in a tag: <c ut value="${2+2}" >.
This works fine and prints out "4".
But here's how I use it in static text:
<html> This is some static text ${2+2} </html>
This does not evaluate to "4"... instead, it literally prints out ${2+2}.
I'm using tomcat 5 with jakarta's implementation for jstl.
I've even added the following to my web.xml :
< el-enabled>true < / el-enabled >
It did not help.
Am I doing it wrong ? I've double-checked with various web tutorials, and they all state that EL *should* work with static text...
Thanks !