velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claude Brisson <cla...@renegat.net>
Subject Re: Server-side redirect from VelocityTools?
Date Thu, 26 Jun 2008 12:37:59 GMT
Le mercredi 25 juin 2008 à 13:08 -0400, Christopher Schultz a écrit :
> Claude,
> 
> Claude Brisson wrote:
> > My strategy about redirects is to map the templates that need them to an
> > ActionServlet that overload VVS.mergeTemplate to use a string buffer.
> 
> Why not simply redirect before the view is evaluated? I don't really 
> understand the use case, here. Shouldn't redirect logic be in the 
> controller, not the view?

I don't use any centralized controller anymore - never understood why it
was an advantage. So I'm using a kind of MV paradigm with a
decentralized controller, and I'm very happy with it. It's quite
straightforward and more flexible.


  Claude

> -chris
> 
> 


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


Mime
View raw message