Community
Participate
Working Groups
Build ID: 3.4.2 Steps To Reproduce: 1. Create a valid class with a public static method. 2. Create the associated tld descriptor and put it in WEB-INF/. 3. Put the taglib describtor in your jsp. 4. Call your function from the jsp e.g. ${mine:rollIT()} You should observe the the EL Syntax validator marks the line in red with a syntax error, but the page itself runs fine inside tomcat. More information: After finding this problem I Googled and found this guy had the same issue. He provides a more detailed description of the issue. http://forums.sun.com/thread.jspa?threadID=5379004 He was told to report it here but I can see no evidence that he did.
This will be fixed by Bug 280621
There are still some issues with this that need to be worked out. Working on a patch now.
Created attachment 151740 [details] Fix Patch The additional problem here is that in this user story the function named defined in the TLD is different then that of the Java method signature function name. Currently the ELGenerator assumes that the el function name is the same as the Java function name, but this does not need to be true. This patch makes it so the ELGeneratorVisitor will inspect the java method signature provided in the TLD for the java function name associated with the EL function name. Several other bugs in this space have been found while working on this but I will be reporting/fixing those in separate Bugs.
Thanks for the patch, Ian. I tweaked how you parse the method name from the function-signature. Instead of using the regular expression, it looks for a word before a ( just by iterating through the string inspecting characters.
Isn't iterating the word ourselves move work and less defective then using the regular expression?