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
Is struts 1 still supported?
How struts2 supports internationalization?
If the framework doesn’t do what I want, can I request that a feature be added?
What are the reasons for an error message not being displayed while developing struts application?
What configuration changes are required to use resource files in Struts?
Why we use struts over servlets?
Why we use struts in java?
What does execandwait interceptor?
Explain how to work with error tags?
What is struts 2 framework in java?
How to display validation errors on jsp page?
What is the purpose of @result annotation?
What are the classes used in struts?
When should be opt for struts framework?
What are the core classes of struts framework? Explain