> - Actions are used after initilizing the ActionContext, context in
with they are executed. Right ? HTTP request parameters, responses,
session specific parameters are set with dispatcher at the moment, right
? This means that Action parameters are inconsistent when used before
the dispatchers initialize their state. Right ?
>Right. But the thread of execution won't come to the execute method of
the Action until it is initialized.
OK ! but before the action is executed, the servlet sessions parameters are set, no ?
> Subclassing ActionSupport and adding some attributes to a this new
subclass, is a possibility to save Action specific state: right or false
?
>How do you mean? You can save things into the Session, but Actions
themselves are not persisted.
I don't want to persist them, just retrieve some XML content. For some action the XML retrieved must be user-specific and for other no-user specific. The only solution i see is to check what's in the HTTPSession and when initializing the ActionContent, put the user-id in the Session,
Another solution ?
Thanks
Joel
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail