explain the struts-configuration file?
Answers were Sorted based on User's Feedback
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 |
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 |
Can we have multiple struts config files ?
What is difference between struts1 and struts2?
What is the significance of logic tags in Struts?
Why actionservlet is singleton in struts?
Even though Servlets and JSP are web based concepts .wht is the use of using Struts using then
What is struts framework?
How is token generated?
In struts.xml, what does the attribute "method" stands for in the "action" tag?
How to override the default error message that can come during file uploading process?
Do you need an alignment after replacing struts?
what is the purpose of load_on_startup entry in struts- config.xml?
What is the purpose of @urlvalidator annotation?