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
What are action errors and error and what are the consequences they impose?
What is difference between actionform and dynaactionform?
What do you mean by inner class and anonymous class?
What is the role of a handler in mvc based applications?
What is the purpose of plug-in tag in struct-config.xml?
How we can configured action mapping in struts?
Give an alternative way to protect jsp’s with not much features from direct access.
What is token used for?
What is the use of namespace in action mapping in Struts2?
What is the purpose of action tag in struts.xml?
What are the classes used as part of struts framework ?
Whats the difference between the default namespace and the root namespace?
How does interceptor work in struts2?
What are the reasons for an error message not being displayed while developing struts application?
What types of validations are available in xml based validation in struts2?