Assuming that requestScope.importMe is expecting a path to a jsp file
<c:choose>
<c:when test="${!empty requestScope.importMe && fileExists(requestScope.importMe) }">
<c:import url="${requestScope.importMe}" />
...
How can I check if the file exists before trying to include it so that an error is not thrown?
I'd like to avoid using inline Java. Something using one of the JSTL tags is the preferred approach.