The Action.perform() method is where you should be setting up the beans your
JSP will use. That seems to be what you are doing (although typically you
will forward, rather than redirect, to the JSP page).
What is it that you're looking for in a pre-process method? Do you mean
something that is called before the action (in which case Oleg's reply
describes a solution), or something that is called after the perform()
method but before the JSP execution?
--
Martin Cooper
----- Original Message -----
From: "Kiet Nguyen" <[EMAIL PROTECTED]>
To: "Struts-User (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 5:41 AM
Subject: preprocess suggestion on struts change
> I think action classes should allow a method(preloadPerform) definition.
> This method would be called prior to the form being load. This way we can
> initialize form values and do pre-process stuff. Currently I have a link
to
> "doSomething.do" which execute a corresponding DoSomethingAction class;
the
> action will then redirect to actual page. I populate the form and do some
> business processing in the doSomethingAction class. Is this how it is
> intended to work.
>
> kiet