explain the struts-configuration file?

Answers were Sorted based on User's Feedback



explain the struts-configuration file?..

Answer / venu

struts-configuration file having the folling componets
1.ActionMappings
2.GlobalForwards
3.GlobalExceptions
4.FormBeans
5.DataSource
6.MessageResources
7.Plugins
8.Controller

Is This Answer Correct ?    21 Yes 2 No

explain the struts-configuration file?..

Answer / 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

explain the struts-configuration file?..

Answer / guest

In Answer 1 , controller configuration is missed

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Struts Interview Questions

how many methods are there in RequestPrccesor class?

2 Answers   Infosys,


What are the core classes of struts?

0 Answers  


What is struts?

0 Answers  


What are action errors and error and what are the consequences they impose?

0 Answers  


Hi i am murali.i need a excellent answer for the question Tell me about project and project flow ? i mean it is use full to any project,it is on STRUTS

2 Answers  






When it’s useful to use IncludeAction?

0 Answers  


Why we use struts in java?

0 Answers  


Can we have different controllers in one struts app?

7 Answers   Accenture,


What is the life cycle of actionform?

0 Answers  


What is front controller in struts2?

0 Answers  


What is DynaActionForm?

0 Answers  


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

0 Answers  


Categories