struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Dewhirst <Dewhirs...@UCLES.org.uk>
Subject the data flow
Date Tue, 14 Aug 2001 09:48:47 GMT
Just want to clarify the flow of data in Struts:

1. Controller receives request.
2. Controller looks up mapping for Action and what ActionForm to use.
3. Controller Creates a new instance of ActionForm, invokes it's reset
method.
3a. If request contains parameters, Controller populates form by mapping
property methods to setters (e.g. parameter "email" would be populated by
calling ".setEmail(..)" method in the form).
3b. If validate method contains code, run it (populating the errors object)
4. Controller invokes Action class' perform method.
5. As the instance of form ActionForm is supplied to the perform method,
populate/process form, invoke EJB's/DB access/etc.
6. return the appropriate mapping (success/failure/etc).
7. Controller looks up returned mapping and forwards to mapped URI.

Could somebody let me know if this is correct.

Mike


=**********************************************************

If you are not the intended recipient, employee or agent responsible for delivering the message
to the intended recipient, you are hereby notified that any dissemination or copying of this
communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return the original
message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept legal
responsibility for the contents of this message.  Any views or opinions presented are solely
those of the author and do not necessarily represent those of the UCLES Group unless otherwise
specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that this
email is virus free.

**********************************************************=

Mime
View raw message