explain the struts-configuration file?

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


Please Help Members By Posting Answers For Below Questions

What’s the difference between struts and espresso?

504


What do struts do?

521


How to convert struts to spring mvc?

537


What is interceptor? And life cycle methods of interceptor?

573


What are the differences between http direct and http indirect?

472






How do you create message resource?

586


Name some of the features of struts2?

571


What should be the name of xml file used for validation in struts?

541


What is the use of jsonvalidation in struts?

553


What is the use of forwardaction?

550


How interceptor works in struts 2?

594


how to connect from struts to database through hibernet and where u can modify the class

2118


Where should struts xml be placed?

505


Explain the complete struts validator framework.

579


When should be opt for struts framework?

578