${ao:resourceExists()}

Checks if a resource exists in the web application.

The path must begin with a slash (/), since it is passed unaltered to ServletContext.getResource(…)

This is useful to dynamically determine if a JSP page exists before forwarding or including the resource.

Example

${ao:resourceExists(path)}

Function Information

Function Class: com.aoapps.taglib.Functions
Function Signature: boolean resourceExists(java.lang.String)
Display Name: None