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

Name the different types of actions found in struts.

0 Answers  


Where should struts xml be placed?

0 Answers  


Explain struts.devmode?

0 Answers  


Is struts action class singleton?

0 Answers  


What is pojo in struts2?

0 Answers  


What are the 5 constants of action interface?

0 Answers  


What are the differences between http direct and http indirect?

0 Answers  


Can you explain custom tag?

0 Answers  


What is used to display the intermediate result in an interceptor?

0 Answers  


how you implement and maintain your struts project by using MVC2 arch?

2 Answers   Patni, Wipro,


Provide some important Struts2 constants that you have used?

0 Answers  


What is the DynaActionForm? How we implement the dynaactionform ? can u please tell me the way to implement? in understandable way?

8 Answers   JBA Infotech,


Categories