On Tue, 2004-12-14 at 11:05, 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.
If you maintain the current language as a parameter in the user's session, you can omit the language prefix from the url and have an overloaded method getTemplate in your controller servlet that prefix the current language to the path found in the url before calling the super one. Claude --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]