Thank you all, that worked fine!
Regards
Federica
Jim Kiley wrote:
You can do that right out of the box. I do it all the time. Give it a try.
Create method with those names, and reference them in JSPs by those names.
It should work.
jk
On Fri, Apr 17, 2009 at 9:31 AM, Federica Oltolina <
federica.oltol...@ubiquity.it> wrote:
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