You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ted Husted <hu...@apache.org> on 2001/10/06 22:14:35 UTC

Re: can I define my own method in action class

Yes. In fact, I would recommend IT as part of any good refactoring. But
be sure to PASS EVERYTHING AS PARAMETERS (pardon the caps, but it is
really very important that you PASS EVERYTHING AS PARAMETERS). The
Actions are multi-threaded, so you cannot share information about a
request between the methods using class variables, but this it is safe
(and efficient) to PASS INFORMATION AS PARAMETERS. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


> "Fang, Frank" wrote:
> 
> I just want to make sure that I can define my own method in action
> class and call it from perform method , does it work?
> 
> Thanks
> Frank