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 are action errors and error and what are the consequences they impose?

550


What is difference between actionform and dynaactionform?

579


What do you mean by inner class and anonymous class?

582


What is the role of a handler in mvc based applications?

729


What is the purpose of plug-in tag in struct-config.xml?

478






How we can configured action mapping in struts?

569


Give an alternative way to protect jsp’s with not much features from direct access.

546


What is token used for?

501


What is the use of namespace in action mapping in Struts2?

566


What is the purpose of action tag in struts.xml?

552


What are the classes used as part of struts framework ?

510


Whats the difference between the default namespace and the root namespace?

503


How does interceptor work in struts2?

494


What are the reasons for an error message not being displayed while developing struts application?

539


What types of validations are available in xml based validation in struts2?

535