You can still have static methods on the action, just
no instance variables that you update. No instance
variables on actions is generally the case.
sandeep
--- David Graham <[EMAIL PROTECTED]> wrote:
> --- Denis Wang <[EMAIL PROTECTED]> wrote:
> > Hello, all,
> > I am not sure whether it is a go
--- Denis Wang <[EMAIL PROTECTED]> wrote:
> Hello, all,
> I am not sure whether it is a good practice to:
> eliminate instance variables from Struts action class; and
> make all methods static.
> Basically it turns the action class into a utility class.
> Any comments? Thanks.
Do *not* make your
You shouldnt be using (modifiable) instance methods in an Action class as
actions need to be threadsafe - remember that could be any number of threads
executing that code at the same time! (This is where request attributes come
in handy) so certainly you should be eliminating instance variables and
3 matches
Mail list logo