2013/6/13 Christian Grobmeier <[email protected]>:
> Hi,
>
> today i started to look into the I18nInterceptor because I wanted
> to add the feature to store the Locale in a cookie, besides request-only
> and session.
>
> I could do it like that:
>
> ActionContext ac = invocation.getInvocationContext();
> HttpServletResponse response = (HttpServletResponse)
> ac.get(StrutsStatics.HTTP_RESPONSE);
>
> But the I18NInterceptor lives in xwork-core, and that package doesn't
> have a dependency to
> the servlet-api nor struts-core.
>
> Currently I do not see a clean way to access the servlet response from
> an interceptor living in xwork. I also can't move it to struts-core,
> because it would require me to change
>  the package name which would be a breaking change.
>
> Any ideas how to solve it?
>
> Otherwise i would create an issue for Struts 3, when the xwork package
> most likely will disappear or when breaking changes are allowed.

The current idea is to keep XWork a standalone project - someone can
use it in non-servlet environment. I also opt to merge XWork into
Struts2 core, but maybe I'm missing something.

Regarding your problem you've already answered your question - extend
and use as default I18N interceptor in struts-default.xml


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to