struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Lipscombe <>
Subject Is it possible to paramterize calls to form bean getters?
Date Thu, 01 Feb 2007 11:51:38 GMT

I need to internationalize an app - returning Locale specific formats for currency and date.

One way to do that is to add getLocalised<PropertyName>() and setLocalised<PropertyName>()
to the 
formbeans for each affected property. These methods will then apply whatever formatting is

But, for the <bean:write> tag to work this involves having an extra getter/setter for
each property 
that needs localisation.

Is there anyway round this? Is there an accepted solution?

TIA - Adam

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message