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.

Cheers
Christian


--
http://www.grobmeier.de
https://www.timeandbill.de

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

Reply via email to