When defining a function for the JSP expression language, is there a way to specify that the function requires one of the implicit objects (such as pageContext
)?
I want to define a function ${my:href('a.jpg')}
to be implemented by
public static String href(String fileName, PageContext pageContext)
but I do not want to have to explicitly pass the pageContext to the function every time I call it.