velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claude Brisson <cla...@renegat.net>
Subject Re: Returning a null object from hanleRequest
Date Wed, 11 Oct 2006 15:08:28 GMT
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: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
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