Hi Jason, > However, renderOutput() will throw a ResourceNotFoundException if the > Included file does not exist (the exception is caught in renderOutput, > but thrown again). > This exception is not handled by render(), and so the exception gets > passed up the call stack without outputErrorToStream() ever being > called. > > So my first question is: is this a bug, or is there a reason to not > allow writing an error to the output stream in this case? I don't know about this. Maybe it should be discussed in the developer list. ## Or you can just file an issue and see what happens. B)
> Question 2: I can modify the Include directive, but is there a way to > configure Velocity at runtime to use the custom directive, so that I can > continue using an unmodified velocity jar? > I'm using setProperty() to override velocity.properties with values that > are in my application's config, but I can't see a way to do that to > override what's in directive.properties. Try userdirective. http://jakarta.apache.org/velocity/developer-guide.html#FAQ3 Best regards, -- Shinobu Kawai -- Shinobu Kawai <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]