If the validate method returs non empty ActionErrors object, the control 
will go to the JSP specified in the input attribute of the corresponding 
action element in struts-config.xml .

Thanks,
Rajasekhar Cherukuri







Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
Struts Users Mailing List <user@struts.apache.org>
cc

Subject
ActionForm validate() - what Action does the controller call?






When my ActionForm returns a non-empty ActionErrors object, where does
control go to?

i.e. i read from the struts site:

"""
When the properties of this bean have been populated, but before the
executemethod of the
Action is called, this bean's validate method will be called, which gives
the bean a chance to verify that the properties submitted by the user are
correct and valid. If this method finds problems, it returns an error
messages object that encapsulates those problems, and the controller 
servlet
will return control to the corresponding input form. Otherwise, the
validatemethod returns
null, indicating that everything is acceptable and the corresponding
Action.execute method should be called.
"""
(my bold)

I guess I don't understand what 'corresponding input form' means? 
Presumably
the controller needs to call some Action, how do I know / specify which 
one?

Thanks

ForwardSourceID:NT0000591E 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Reply via email to