Ok, sorry for posting before having thought hard enough ;-) At least i found a solution:
<logic:equal name="bean" property="priority" value="low"><bean:message key="priority.low"/></logic:equal> <logic:equal name="bean" property="priority" value="normal"><bean:message key="priority.normal"/></logic:equal> <logic:equal name="bean" property="priority" value="high"><bean:message key="priority.high"/></logic:equal> but still, there might be a more elegant way... > Hi! > > In my application I have an enumeration called priority containg values > "low", "normal" and "high". At one point of the application the user can > enter the priority using a selection list. Localizing here works fine like > this: > > <html:select property="priority"><html:option value="low" > key="priority.low"/><html:option value="normal" > key="priority.normal"/><html:option value="high" > key="priority.high"/></html:select></td> > > using a property file looking like this: > > priority.low=Niedrig > priority.normal=Mittel > priority.high=Hoch > > Like I said, this works perfectly well. But at another point of the application > the choosen priority should be displayed. > A simple > <bean:write name="bean" property="priority"/> > would display the not localized values "low", "normal" or "high", but ofcourse > I would like to have the localized strings "Niedrig", "Mittel", or "Hoch" to > be shown... > > Any clues ? > > thanks, > > Gernot. > > > > --------------------------------------------- > Kabelsignal AG Webmail > http://www.kabelsignal.at > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > --------------------------------------------- Kabelsignal AG Webmail http://www.kabelsignal.at -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>