Declare function in taglib that has an inner class in the signature
문제
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>
해결책
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.
다른 팁
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 ?
제휴하지 않습니다 StackOverflow