tags:

views:

170

answers:

2

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>
+1  A: 

org.example.Outer.ArticleAndStatus

Boris Pavlović
Doesn't work:org.apache.jasper.JasperException: PWC6300: The class org.example.Outer.ArticleAndStatus specified in the method signature in TLD for the function adverse:getStatusString cannot be found. org.example.Outer.ArticleAndStatus
Artefacto
most likely org.example.Outer.ArticleAndStatus is not public. But there is too little to go on from the question to say for sure tho.
Chii
It is a public static class.
Artefacto
+1  A: 

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.

James Calfee
What was the resolution? That a bug was determined?
predhme