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

Which design pattern the interceptors in struts2 is based on?

0 Answers  


what is is the use DynaActionForm?

3 Answers   TCS,


Struts follows which design patterns?

4 Answers   IGT,


Why are frameworks used?

0 Answers  


What are the cons of struts 2?

0 Answers  


Describe the mvc on struts?

0 Answers  


what is project architecture?give brief explanation about project architecture?

3 Answers   CTS, Etisalat, IBM, Infinite Computer Solutions, Mphasis,


What is the purpose of @doublerangefieldvalidator annotation?

0 Answers  


What is the use of ActionErrors in Struts?

2 Answers   HCL, TCS,


How can we display validation errors on jsp page?

0 Answers  


Which library is provided by struts for form elements like check boxes, text boxes etc?

0 Answers  


How can we display all validation errors to user on jsp page?

0 Answers  


Categories