life cycle of struts?

Answer Posted / manohar reddy. vummadi

From Jsp page the controller looks into <form>tag with that
it enters into the web.xml, in web.xml it checks the <url-
pattern> tag, and it maps with <servlet-name> tag in
<servlet-mapping> tag, again it checks with <servlet-name>
which is there in <servlet> tag, it looks for corresponding
<servlet-class>.The Controller goes in strus-config.xml
from the it controller checks with the (req name) both in
<action> and <form-bean> if it is matching it will look
into the FormBean class.In FormBean class we have to write
setters and getters for the form input fields which are
there in Jsp page.Then the req is forwadard to Action
class. In Action class it will do some business logic based
on the requirement.

Is This Answer Correct ?    19 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of @result?

577


What are the 5 constants of action interface?

541


What are pull and push mvc architecture and which architecture does struts2 follow?

506


What is used to display the intermediate result in an interceptor?

499


What is actionform in struts?

479






What is ValueStack and OGNL?

566


What is value stack?

621


Is struts 1 still supported?

508


How we can install struts?

554


What is struts in j2ee?

525


What is struts validator framework?

548


What are the advantages of spring mvc over struts mvc?

495


How can you create your custom interceptor in struts 2?

537


What is the use of execAndWait interceptor?

554


What is role of action class?

560