Yes, you can ignore the warning.

No, there is no other way to indicate to Velocity that there is no
template to render.

What you can do to get rid of the warning is move the code that handles
responses itself to another servlet which doesn't inherit
VelocityViewServlet, and adjust the mappings correspondingly in web.xml,
if feasible.

  Claude

Le mercredi 11 octobre 2006 à 15:22 +0100, Steve O'Hara a écrit :
> I have a Tomcat application where I am extending VelocityViewServlet and
> overriding handleRequest with my handler.
> 
> There are circumstances where I am handling streaming back to the
> browser myself and I don't want Velocity to render a template.  In these
> situations, I return a null from handleRequest which works OK.  However,
> now that I have turned on logging for Velocity I notice that there are
> warnings each time I do this like "VelocityViewServlet: couldn't find
> template to match request"
> 
> Is it safe to ignore these are should I be doing something else to
> indicate to Velocity that there is no template to render?
> 
> Thanks,
> 
> Steve
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to