Answer Posted / zurreyab ahmad
<struts-config>
<data-sources />
<form-beans >
<form-bean name="LoginForm" type="RegisterForm" />
</form-beans>
<global-exceptions />
<global-forwards >
<global-forwards >
<forward name="success" path="/success.jsp"/>
<forward name="failure" path="/failure.jsp"/>
</global-forwards>
<action-mappings >
<action path="/login" type="RegisterAction"
name="LoginForm" scope="request" >
</action>
</action-mappings>
<message-resources
parameter="com.yourcompany.struts.ApplicationResources" />
</struts-config>
</action-mappings>
the controller first goes to action mapping and check the
name of action mapping and action form if same then goes to
action form then check reset method and reset request and
check valideter method and then forward action class
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
How do I install struts?
How to override the default error message that can come during file uploading process?
What is front controller in struts2?
What is the purpose of plug-in tag in struct-config.xml?
What is apache struts vulnerability?
What is the use of lookupdispatchaction?
What are the loop holes of struts?
What is the actionform?
What is the purpose of @doublerangefieldvalidator?
What is the purpose of form-be tag in struct-config.xml?
What is the purpose of @after annotation?
What is container struts2?
What design patterns are used in struts?
What is discontinuous strut?
What is the purpose of dispatcher result type?