velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manish" <prol...@gmx.net>
Subject file not found in #include #parse
Date Mon, 08 Nov 2004 06:46:35 GMT
How can I handle the condition gracefully that file specified by$fileName
does not exist in either -

#include($fileName)
#parse($fileName)

As of now, when the file is not found, it throws exception -

Unable to find resource '/user/profile123.htm'
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource '/user/profile123.htm'

TIA,
- Manish


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message