You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Karl R. San Gabriel" <ka...@gmail.com> on 2008/10/25 05:34:27 UTC
EL keywords - not and empty - and EL functions
Dear All,
Good day! I am a new guy and still adjusting to the TC project. :-)
I have noticed the fixes you wanted to put in to TC 6.0.18 for bug 46084
(duplicate of 45511) .
https://issues.apache.org/bugzilla/show_bug.cgi?id=46084
https://issues.apache.org/bugzilla/show_bug.cgi?id=45511
The ways the keywords "not" and "empty" (in duplicate bugs) were used
in JSP files were like EL functions.
EL functions are different. They are static methods from Java classes
made exposed via the <function> XML tag in the TLD file.
TLD file:
...
<uri>FunctionNot</uri>
<function>
<name>doItNow</name>
<function-class>Fully qualified class name</functon-class>
<function-signature>void doItNow()</function-signature>
</function>
...
When we use "not" in the ff way:
${not(true)}
we are using it as an *EL function name* (because no whitespace(s)
between "not" and "(" ).
It should not work because there is no declaration in the TLD for that
EL function "not".
Thus, the exceptions (please see desciptions of bugs 46084 and 45511).
Regards,
Karl San Gabriel
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: EL keywords - not and empty - and EL functions
Posted by "Karl R. San Gabriel" <ka...@gmail.com>.
Karl R. San Gabriel wrote:
> Dear All,
>
> Good day! I am a new guy and still adjusting to the TC project. :-)
>
> I have noticed the fixes you wanted to put in to TC 6.0.18 for bug
> 46084 (duplicate of 45511) .
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=46084
> https://issues.apache.org/bugzilla/show_bug.cgi?id=45511
>
> The ways the keywords "not" and "empty" (in duplicate bugs) were used
> in JSP files were like EL functions.
> EL functions are different. They are static methods from Java classes
> made exposed via the <function> XML tag in the TLD file.
>
> TLD file:
> ...
> <uri>FunctionNot</uri>
> <function>
> <name>doItNow</name>
> <function-class>Fully qualified class name</functon-class>
> <function-signature>void doItNow()</function-signature>
> </function>
> ...
>
> When we use "not" in the ff way:
>
> ${not(true)}
>
> we are using it as an *EL function name* (because no whitespace(s)
> between "not" and "(" ).
> It should not work because there is no declaration in the TLD for that
> EL function "not".
> Thus, the exceptions (please see desciptions of bugs 46084 and 45511).
>
> Regards,
> Karl San Gabriel
>
>
Pardon me. I was talking nonsense. :-)
Yeah, I tried ${not(true)} in JBoss and it works.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org