> Subclass VelocityViewServlet and implement a protected void
> fillContext(Context ctx, HttpServletRequest request) method.   Cast
> the Context to a ToolContext and then use do putToolProperty("locale",
> yourLocale).   Or do something like that.  You just need to get ahold
> of the ToolContext and set the locale tool property before the tool(s)
> in question get initialized and after the request locale has been set
> (so yours doesn't get overridden).

Nathan,

thanks for your input. Your approach does work as expected. However my locale 
may change within a request so I have to put my tools into the request scope. 
Moreover the DisplayTool has a bug. The configure method does not call 
super.configure and the request locale does never get set. I will open a jira 
ticket for.
-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail

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

Reply via email to