The tag to allow front-end validation based on the xml in validation.xml. For example the code: generates the client side java script for the form logonForm as defined in the validation.xml file. The when added in the jsp file generates the client site validation script.
ActionForm class is used to capture user-input data from an HTML form and transfer it to the Action Class. ActionForm plays the role of Transport Vehicle between the presentation Tire & Business Tier.
Life Cycle :
The steps would be like this
There are two types of Controllers in Strus.
1. Main Controller/FrontController
2. Application Controller
The web container do not need to know about the design pattern we used in our application. Our Struts application is deployed in the web.xml file. The container reads the web.xml file, and acts accordingly.
Yes! One can have more than one struts-config.xml file for a single Struts application. You can define different struts-conifg.xml file for different modules in a single web application. It is useful when you are developing a distributed application.
But you must enter those struts-config.xml files details in deployment descripter (i.e., web.xml) file.
Here three struts configutation files are deployed in a single application.