In a JSP page I got a bean namely School
which has a method called getDescription(String Locale)
. If I pass en_US
it will return English text and for fr_CA
it will return French text.
I have no problem using fmt tags like: <fmt:message key="school_list.title2"/>
for static content but is there a way I can pass parameter for beans so I can use something like: ${school.description}
or ${school.description(locale)}
?
Are there any good ways to handle this using standard EL and JSTL?