Re: is Struts action class a Design Pattern of utility class?

2003-07-16 Thread Sandeep Takhar
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

Re: is Struts action class a Design Pattern of utility class?

2003-07-16 Thread David Graham
--- 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

RE: is Struts action class a Design Pattern of utility class?

2003-07-16 Thread Andrew Hill
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