I have defined an action mapping that accepts a session-level form.  When
this action is invoked, the form data is validated and I do some
business-logic pre-processing of the data.  I need to set a parameter in the
form that represents a transaction id value.  This action then forwards to
another action based on the rules of our business logic.  In one of those
cases, the action I forward to will need to re-read the session-level form
and pull this transaction id from the form and use it to submit a job.

The problem I am noticing is that when the second action is being invoked,
the form is being 'repopulated' with the initial form values that the form
had when it was passed to the first action.

Both actions have the form defined at the session-level in their mapping
definitions.  I have debugging information in action1 that shows the session
object is being populated and set appropriately.  I even retreive the object
after setting it in action1 to validate my value and it's there.  In
action2, I have added debugging information that checks both the input
ActionForm and the session object directly.  In both cases, Action2 reflects
this form-bean's property to be 0 and should be some >0 value.

First of all, is what I am doing possible based on the struts framework?  I
can set a single attribute in the session and reference that value
successfully from action to action; however it seems when using a form
object, this isn't working as I had expected it to ...

Thanks in advance!
Chris




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

Reply via email to