Hi !

Here is the problem I try to deal with. Suppose a JSP page is shown on
somebody's navigator ; this JSP is a form, whose action is a Struts action,
and which needs a bean DataBean to be shown properly. Suppose now that the
basic validation fails (i.e. the validate() method of the ActionForm
returns a non-empty ActionErrors object). The Struts framework shows the
page mentioned in the input parameter, in general the same page that
yielded the validation error, so that the user can correct the mistyped
fields.
Now, the problem is I don't have my DataBean to show the page correctly.
Do you think that the design should provide a way to keep all these request
beans that were available before the validation failed ? Or do you think
that it is up to the validate method to handle these beans to put them back
in the request ? But then, one must be aware of all the needed beans, and I
would assume that different people have developed the JSP file and the
ActionForm code.
I would personnaly think that the by-default behaviour should be to put
back all these beans inside the next request that asks for corrective
action on the fields ; it should not be taken care of by the code inside
the validate() method, but, presumably inside the processValidate() method
of the ActionServlet class.
Thank you for your advice on this matter.

Olivier




----------------

Les donnees et renseignements contenus dans ce message sont personnels, confidentiels 
et secrets. Ce message est adresse a l'individu ou l'entite dont les coordonnees 
figurent ci-dessus. Si vous n'etes pas le bon destinataire, nous vous demandons de ne 
pas lire, copier, utiliser ou divulguer cette communication. Nous vous prions de 
notifier cette erreur a l'expediteur et d'effacer immediatement cette communication de 
votre systeme.

The information contained in this message is privileged, confidential, and protected 
from disclosure. This message is intended for the individual or entity adressed 
herein. If you are not the intended recipient, please do not read, copy, use or 
disclose this communication to others ;also please notify the sender by replying to 
this message, and then delete it from your system.


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

Reply via email to