Re: [atg_tech:3824] handler mathod

1 view
Skip to first unread message
Message has been deleted

Wilco Boumans

unread,
Jul 3, 2009, 6:46:10 AM7/3/09
to atg_...@googlegroups.com
Hi

Yes you can!

But it's not a great design.
Also, beware of transactions, your risk executing actions in two
separate transactions if you update repository items.

Wilco

>
> Hi all
> Can we call the form handler method from another handler method. for
> example i am calling handelDemo from jsp. Inside that handle method
> can i call handelDemo2 method ? Weather it is possible or not

Sola Ajiboye

unread,
Jul 3, 2009, 7:17:55 AM7/3/09
to atg_...@googlegroups.com
Hi,
Following on from Wilco's,... you may consider creating a manager
(Service class) for the two FormHandlers. This should improve your
design ...
Sola

2009/7/3 kool <kira...@gmail.com>:

quicksilver03

unread,
Jul 3, 2009, 8:03:48 AM7/3/09
to ATG_Tech
I second (third, actually) the previous suggestions. Any time you ask
yourself "how to call a form handler from another form handler" it
means that your application is badly factored and that you have locked
your functionality into the form handler classes. Definitely create
another component that makes the functionality reusable and call it
from how many form handlers (and other classes) you wish.

On Jul 3, 1:17 pm, Sola Ajiboye <solaj...@googlemail.com> wrote:
> Hi,
> Following on from Wilco's,... you may consider creating a manager
> (Service class) for the two FormHandlers. This should improve your
> design ...
> Sola
>
> 2009/7/3 kool <kiran....@gmail.com>:
Reply all
Reply to author
Forward
0 new messages