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 |
What is the purpose of @intrangefieldvalidator annotation?
For a single Struts application, can we have multiple struts-config.xml files?
At the point, you should go for struts framework?
What is the life cycle of actionform?
What is spring and struts in java?
what happen if the private constructor is written in a claass
Give an alternative way to protect jsp’s with not much features from direct access.
Hi Friends, why struts introduced in to web application. Plz dont send any links . Need main reason for implementing struts. Thanks Prakash
What is the procedure of operation of a form tag?
How struts control data flow?
What are the aware interfaces in struts2?
what are java stuts? what are there uses
2 Answers Rupa, Tech Mahindra,