Instead of changing the resource loader, you can have everything under
the same directory, with subdirectories for each language.  Then build
the correct template name, including the appropriate subdirectory, in
your servlet.

Barbara Baughman
X2157

On Tue, 14 Dec 2004, Geercken Uwe wrote:

>
> hello everybody,
>
> I have developed a web application using the velocitylayout servlet.
> works fine and I am very happy with velocity. but one thing I would need
> your help on.
>
> I currently have all my templates in one folder eng/templates (where eng
> means "english"). I would like to be able to allow the user to switch to
> a different language, so that now the folder e.g. de/templates is used.
> I use a central controller servlet that extends the layout servlet. what
> do I need to do to change the location of the templates dynamically from
> the web application.
>
> thanks for your help.
>
> uwe
> ------------------------------------------------
> Uwe Geercken
> e-mail:       [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> 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