Uhhhh.......that's Dave.......but that's all right. Go get that second cup
of coffee!   ;-))

Dave Derry


----- Original Message -----
From: "Galbreath, Mark" <[EMAIL PROTECTED]>


> Absolutely right, Jerry!  Ironically, I was just writing a non-Struts
helper
> class to make a credit card validation method thread safe and I was not
> Thinking-in-Struts mode.  The no-instance variables rule is one of the
first
> things learned when starting out with Struts!  The variable should be
> limited to local scope or different threads are going to jeopardize the
> integrity of the variable state because the Action class is, in essence,
> static (singleton).
>
> Better get a second cup of coffee...is it Friday yet???
>
> Mark
>
> -----Original Message-----
> From: Dave Derry [mailto:[EMAIL PROTECTED]]
>
>
> Had your coffee yet this morning Mark? I don't think you read this very
> closely. Unless I am sorely mistaken (and it wouldn't be the first time!),
> it has been pointed out many times on this list that only one instance of
> each Action class will created, and cached by the ActionServlet. They must
> therefore be thread-safe, and any instance variables are a big no-no.
>
> If I am wrong about this, please let me know because that would certainly
> simplify the task that I am currently engaged in! ;-)
>
> Dave Derry
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to