DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26628>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26628

Function without parameters never found

           Summary: Function without parameters never found
           Product: Tomcat 5
           Version: 5.0.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a very simple function call in a JSP page:

   ${test:foo()}

This function is defined in my taglib as:

   <function>
      <name>foo</name>
      <function-class>functions.Foo</function-class>
      <function-signature>java.lang.String foo()</function-signature>
   </function>

No parameters are to be provided. However, the method

   org.apache.jasper.compiler.Validator#getParameters(ELNode.Function)

assumes that parameters are always present. In the abscence of
parameters, an attempt is made to load a class ".class", which is
of course not found by any classloader.

I will attach a simple test case for this bug as a war file.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to