You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ROSSEL Olivier <ol...@airbus.com> on 2002/11/28 17:15:28 UTC

ActionForm filled by several forms.

I have a DynaActionForm:
A (String)
B (String)
C (String)
D (String)
E (String)

I want to fill it with 2 forms:
1.jsp:
       Form (action=1.do)
	A: _______
	B: _______
            
	D: _______

	Submit

1.do has an actionMapping with a 
DynaActionForm in session scope, 
and it forwards to:
2.jsp
       Form (action=2.do)
	C: _______
            
	E: _______

	Submit
  
2.do has an actionMapping with a 
DynaActionForm in session scope.
It forwards to result.do if
the Form has all its fields filled
with something.

This process fails.
When 2.do processes the form,
it seems that C and E are ok.
But A,B and C have been cleared.

It seems that when 2.do was called, 
it removed the Form already in the session
and added a new one.
It is correct?
Is it a feature?

Can't a ActionForm be partially filled by several forms all around the
website,
until it is full?

---cut here---


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: ActionForm filled by several forms.

Posted by Gemes Tibor <ge...@regens.hu>.
> It seems that when 2.do was called,
> it removed the Form already in the session
> and added a new one.
> It is correct?
> Is it a feature?

DynaActionForm does reset() itself on every request. In your case you should 
extend the DynaActionForm and override reset()

Tib

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>