Looks like you need a dose of ServletActionContext:

http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/ServletActionContext.html

Zarar


On 10/11/07, Adam Hardy <[EMAIL PROTECTED]> wrote:
> I'm writing a few static methods to use as taglib functions in my JSPs, in
> particular right now I'm writing a method to return an internationalised 
> string
> from the resource bundles for use such as this:
>
> <a href="/somewhere.html"
>     title="${adam:message('trading.catalog.goSomewhere')}">
>    Somewhere
> </a>
>
> For this example I need access to the locale in use.
>
> I suspect that my options are to tap into the S2 framework somewhere or to set
> up a filter to store this stuff in my own ThreadLocal (which wouldn't tie me
> into any version of struts).
>
> Any thoughts on how to achieve this?
>
> Regards
> Adam
>
> ---------------------------------------------------------------------
> 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