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

Explain the components of struts?

527


Explain how can we upload files in struts2 application?

612


List the important attribute and elements of action mapping under struts.

521


How is a lookup dispatch action created?

527


What is struts?

569






What is difference between lookupdispatchaction and dispatchaction?

621


What configurations are stored in struts configuration file ?

527


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

570


In struts, how can we access java beans and their properties?

549


At the point, you should go for struts framework?

538


What is the difference between struts and spring?

514


What’s the difference between struts and turbine? What’s the difference between struts and espresso?

512


Briefly tell the two kinds of form beans.

551


What is the purpose of @expressionvalidator annotation?

583


What are the two scope types for formbeans?

601