Answer Posted / me
struts1.3 flow
1) A request comes in from a Java Server Page into the
ActionServlet.
2) The ActionServlet having already read the
struts-config.xml file, knows which form bean
relates to this JSP, and delegates work to the validate
method of that form bean.
3) The form bean performs the validate method to determine
if all required fields have been entered, and performs
whatever other types of field validations that need to be
performed.
4) If any required field has not been entered, or any field
does not pass validation, the form bean generates
ActionErrors, and after checking all fields returns back to
the ActionServlet.
5) The ActionServlet checks the ActionErrors that were
returned from the form bean’s validate method to determine
if any errors have occurred. If errors have occurred, it
returns to the originating JSP displaying the appropriate
errors.
6) If no errors occurred in the validate method of the form
bean, the ActionServlet passes control to the appropriate
Action class.
7) The Action class performs any necessary business logic,
and then forwards to the next appropriate action (probably
another JSP).
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the use of token interceptor in Struts2?
What is the purpose of dispatcher result type?
What do struts do?
What are the struts2 error message keys that can come during file uploading process?
What are the different kinds of actions in struts?
What is the default suffix for Struts2 action URI and how can we change it?
Can we have more than one struts-config.xml file for a single struts application?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
How are interceptors and servlet filters different?
What design patterns are used in struts?
What do you mean by actionform?
Explain how to work with error tags?
Explain the necessity of empty tag?
What are the action classes in struts?
What is the purpose of @key annotation annotation?