But do you see the point in setup functions *outside* an Action's code
that occurs on the forward-level?  Meaning, once an Action returns a
forward, do some setup based on what forward was returned?

If so, check out the Bugzilla ticket I opened today where I provide this
functionality, as well as the pre-Action capability (which I think makes
sense if you don't think about the timing... maybe there is setup that you
want to perform regardless of which forward is returned by the Action...
yes, it happens before the Action is executed, but it hardly matters
whether it happens before or after execute() is called, as long as it
happens regardles of the forward returned is the pertinent point).

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Wed, March 9, 2005 1:55 pm, Shey Rab Pawo said:
> Many people would suggest that using Actions in Struts would be
> preferrable whether or not you need to do any "setup" or any
> "processing" in the movement from one page to another in a website.
>
> I think of Actions as places to organize what needs to be done
> (processing the request) and providing any dynamic navigation needed
> with the ActionForward return class.  With the forward being
> determined in the Action, this is the ideal place to manage or to
> delegate management of the setup as well.  Thus, I don't see any value
> in doing "setup" prior to coming to the action.  This would be
> desireable, I think, only if you did not want to use the Action at
> all.  If you are going to use the Action, this is an unnecessary
> complication I think.  I may not understand the point, however.
> Certainly there seems to be a lot of interest in doing this, that is,
> providing "pre-action" setup.  I am not sure why.  This thread
> confuses me.  I don't see the point at all.
>
>
> On Sat, 5 Mar 2005 08:03:04 +0000, Ben Taylor <[EMAIL PROTECTED]>
> wrote:
>> Hi,
>>
>> Can anyone tell me if there is an easy way to put information
>> (required to populate drop down boxes using data from a db) in to the
>> request, without having to write a setup Action for each page as is
>> done here: http://www.reumann.net/struts/lesson2/step9.do .
>>
>> Thank you for any help!
>
>
> --
> No one ever went blind looking at the bright side of life.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to