Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is struts 1 still supported?

899


How struts2 supports internationalization?

1092


If the framework doesn’t do what I want, can I request that a feature be added?

914


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

912


What configuration changes are required to use resource files in Struts?

996


Why we use struts over servlets?

1023


Why we use struts in java?

898


What does execandwait interceptor?

989


Explain how to work with error tags?

985


What is struts 2 framework in java?

1002


How to display validation errors on jsp page?

978


What is the purpose of @result annotation?

1098


What are the classes used in struts?

1059


When should be opt for struts framework?

1002


What are the core classes of struts framework? Explain

959