On 02-02-2010 at 20:31, John wrote:
> I want to ask whether it is possible to get the current locale in stripes
> in an actionbean and in a jsp. My locale picker in the stripes extension
> package only allows a choice between two locales which are both mentioned
> in web.xml and they are "en" and "fr". I want to know if I can get the
> selected locale from an actionbean and a jsp page.

The selected Locale is set on the response and in the ActionBeanContext.
You get get at it like this:
- ActionBean: getContext().getLocale()
- JSP: ${response.locale}


Oscar

-- 
   ,-_
  /() ) Oscar Westra van Holthe - Kind      http://www.xs4all.nl/~kindop/
 (__ (
=/  ()  Don't let your boss fuck you; that's anti-capitalist.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to