I can't even make that assumption in Struts? I should be able to assume
how the Struts Chain works for a Struts Command. But in terms of a
solution, what do you suggest? I find it implausible there is no way for
a command to perform first-time initialization in Struts.
Paul
Martin Cooper wrote:
On 2/21/07, *Paul Benedict* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
One thing I noticed in s1 is that there is no way to initialize a
command. I am not speaking about the public constructor, but a way
for a
servlet-aware command to perform first-time initialization before its
execute() method gets invoked.
You're making the assumption that there *is* such a thing as
"first-time setup". I don't believe that's a safe assumption, and it's
certainly not an assumption that is built into Commons Chain or stated
as an invariant thereof. It's perfectly possible that a command
instance is created immediately before the 'execute' method is invoked
and discarded immediately afterwards. How that works is entirely up to
the catalog implementation.
--
Martin Cooper
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]