Hi all,
my head office yesterday asked me if it's possible to declare
in some special file a mapping between actions and their methods
because he'd like to use custom getter/setter methods containing some
little formatting operations.

For example, for the action attribute:
/
private String bankingCode;/

he liked having in our action more than one getter that would sound like:

/getBankingCodePrecedeedByAnyZero();
getBankingCodePrecedeedByFiveZero();
and so on...

/and then in the jsp that corresponds to the action cited above ho would Struts2 to be able to understanding the correct setter/getter method, for example he'd like to write

/...
<s:property value="//bankingCodePrecedeedByAnyZero//"/>
...//
/
obtaining the result of the method /getBankingCodePrecedeedByAnyZero();

/Someone knows if there is a way to do this?
No matter if this sounds like a swearword for a Struts2 good user
or if this is not smart, he asked me this.

Thanks in advance
Federica

Reply via email to