The thing to remember here is that unlike the constructor, prepare() won't
run on its own outside of a Struts context. So if you are writing unit
tests of your various execute() type methods, be aware that you will need to
run prepare() manually within the unit tests (or as part of setUp() or
what
Sheesh, that works like a dream, thanks ...
Can't think how I missed that bit in the book.
Preparable, marvelous.
lyallex
On Wed, Jul 9, 2008 at 5:04 PM, Jim Kiley <[EMAIL PROTECTED]> wrote:
> I think in this situation I would have SomeAction implement Preparable, and
> put someComponent's init
I think in this situation I would have SomeAction implement Preparable, and
put someComponent's initialization into the prepare() method, if I could get
away with it. I realize that might not be possible in your situation, but
not knowing more details it's my first suggestion.
jk
On Wed, Jul 9,
3 matches
Mail list logo