钟原froast wrote:
I use singleton="false" in my spring config file, and then it generates one
action instance for each request. There comes the problem, for example, I
want to edit a user's profile, I get the user's profile in the UserAction's
edit() method, and then forward to the eidt.jsp, then user eidt his
profile,
and submit to UserAction's update() method; but since they're two different
Action instance, so the user's profile i get is missing in the second
action
instance, can I pass the first Action instance's user profile to the second
action instance? if possible, how ?
You have two choices: a) store the profile in the user's session, so it
remains across requests; or b) re-fetch the profile before processing
the update().
To achieve b), take a look at the Preparable interface and perhaps the
paramsPrepareParams interceptor stack.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]