Hi, this question may have a simple answer, but currently I don't see it :)
>From my JSP I wanto access some bean's property which returns, say, date as string in localized format, depending on currently selected locale (Globals.LOCALE_KEY). Currently, I have method like this in my bean: getLastChangedDateString(Locale locale){ .. return some_string } Therefor, the returned date string is formatted accordingly to current locale. Is it possible to pass this parameter (locale) to the get method, from jsp? Something like: <bean:write name="theClass" property="lastChangedDateString(here_I_need_the_current_locale)"/> OR another solution came to my mind: Have the method getLastChagedDateString() without parameters and let the method find out the current locale itself. But here I don't know wheter, and if so then how, the bean has access to current session in order to retrieve the current locale. Any hints? Thanks in advance. Radek _____________________________ Ing. Radek Václavík ICS Department - webmaster ZeNTIVA a.s. U Kabelovny 130, 102 37 Praha 10 Czech Republic tel. +420 267 243 296 _____________________________