Re: [struts] s2 override request_locale

2007-12-28 Thread Dale Newfield
Markus Stauffer wrote: Another thing that I do not understand is why in the default Interceptor stack the i18n intereceptor is called after the prepare interceptor. In the prepare() methode the Locale is not set, because the i18n interecptor is invoked later in the stack. I had to manualy regro

Re: s2 override request_locale

2007-12-28 Thread Markus Stauffer
It is not the best solution to Implement the LovaleProvider and the getLocale() method: Instead I wrote my own Interceptor that manual set the Locale "invocation.getInvocationContext().setLocale()". Another thing that I do not understand is why in the default Interceptor stack the i18n interece

Re: s2 override request_locale

2007-10-17 Thread Dave Newton
Have you tried overriding the getLocale() method of ActionSupport-derived classes? --- Markus Stauffer <[EMAIL PROTECTED]> wrote: > Dear All > > Consider the following scenario: The preferred > language of the user is > store in the database. I want to override any > struts2 i18n settings > when

s2 override request_locale

2007-10-17 Thread Markus Stauffer
Dear All Consider the following scenario: The preferred language of the user is store in the database. I want to override any struts2 i18n settings when the user logs in. What is stored in the database is of higher priority than e.g. what the web browser sends in the HTTP request headers. How can