InterviewSolution
| 1. |
What Are The Uses Of Tiles-def.xml File, Resourcebundle.properties File, Validation.xml File? |
|
Answer» tiles-def.xml : tiles-def.xml is used as a configuration file for an appliction during tiles development You can define the layout /header /footer /body content for your View. validation.xml : The validation.xml file is used to declare sets of validations that should be applied to Form BEANS. Each Form Bean you want to validate has its own definition in this file Inside that definition, you specify the validations you want to apply to the Form Bean's fields. Resourcebundle.properties : Instead of having hard-coded error messages in the framework, STRUTS Validator allows you to specify a key to a MESSAGE in the Application Resources. properties (or resourcebundle. properties) file that should be RETURNED if a validation FAILS. tiles-def.xml : tiles-def.xml is used as a configuration file for an appliction during tiles development You can define the layout /header /footer /body content for your View. validation.xml : The validation.xml file is used to declare sets of validations that should be applied to Form Beans. Each Form Bean you want to validate has its own definition in this file Inside that definition, you specify the validations you want to apply to the Form Bean's fields. Resourcebundle.properties : Instead of having hard-coded error messages in the framework, Struts Validator allows you to specify a key to a message in the Application Resources. properties (or resourcebundle. properties) file that should be returned if a validation fails. |
|