Question

Let's say I want to declare a function that has this java signature:

public static String getStatusString(ArticleAndStatus aas) {
    //...
}

and that ArticleAndStatus is an inner class of org.example.Outer.

How would I declare it in a taglib? These both fail:

   <function>
       ...
       <function-signature>java.lang.String
       getStatusString(org.example.Outer.ArticleAndStatus)
       ...
   </function>
   <function>
       ...
       <function-signature>java.lang.String
       getStatusString(org.example.Outer$ArticleAndStatus)
       ...
   </function>
Was it helpful?

Solution

I have the same issue using a public static inner class. I would say the syntax is the dot. It may be a bug in here org.apache.jasper.compiler.

OTHER TIPS

org.example.Outer.ArticleAndStatus

Can't you just create a dummy interface which you make your inner-class implement, and give it as the method parameter ?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top