| 1. |
What Is The Purpose Of Struts.properties In Struct2? |
|
Answer» This configuration file provides a mechanism to change the default behavior of the framework. Actually all of the properties contained within the STRUTS.properties configuration file can also be configured in the web.xml using the init-param, as WELL using the constant tag in the struts.xml configuration file. But if you like to keep the things SEPARATE and more struts SPECIFIC then you can create this file under the FOLDER WEB-INF/classes. The values configured in this file will override the default values configured in default.properties which is contained in the struts2-core-x.y.z.jar distribution. This configuration file provides a mechanism to change the default behavior of the framework. Actually all of the properties contained within the struts.properties configuration file can also be configured in the web.xml using the init-param, as well using the constant tag in the struts.xml configuration file. But if you like to keep the things separate and more struts specific then you can create this file under the folder WEB-INF/classes. The values configured in this file will override the default values configured in default.properties which is contained in the struts2-core-x.y.z.jar distribution. |
|