In a portlet, the locale can be fetched from the PortletRequest
object. There is a snippet of code in the Jsr168Dispatcher that does
this. Also, check out
http://www.jdocs.com/portlet/1.0/api/index.html?javax/portlet/PortletRequest.html

Nils-H

On 3/14/07, Paul Benedict <[EMAIL PROTECTED]> wrote:
I am getting back in gear to enhance localization for Struts 1, which I
hope will prove useful for Struts 2 as well. One thing I need to know
though is how the locale is determined for a portlet? Right now I have
tied the getting/setting of the locale to the servlet objects, but this
wouldn't be a good idea if the Portlet API has a getLocale() method.
However, I haven't found such a method. So how does a S2 portlet app
really get the locale?

Paul

---------------------------------------------------------------------
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