Assuming that requestScope.importMe is expecting a path to a JSP file
Put it in a c:catch tag. It will catch any thrown Exception for you.
Error: ${e.message}
I must however admit that I don't like the c:catch
approach. It's abusing exceptions to control the flow. If you can, rather do this job in a servlet or JavaBean instead with help of File#exists()
(and ServletContext#getRealPath()
).