How you will make available any message resources definitions file to the struts framework environment?
Answer / Vivek Kumar Gupta
In Struts, to make a message resources definitions file (properties or xml) available to the framework environment, you need to follow these steps: 1. Place the resource file in the appropriate location (WEB-INF/classes for properties files or WEB-INF/resources for XML files). 2. Configure the resource bundle path and classname in the struts-config.xml file. 3. Access the message resources from your action classes and JSP pages using ResourceBundle or i18n tags.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can you create your custom interceptor in struts 2?
What is the purpose of @customvalidator annotation?
What is the purpose of redirect result type?
What is the use of Struts.xml configuration file?
What happens when Two users requests for same action class? How the threads are controlled?
Which parser is used in Struts to parse the Structconfig.xml file.
What is the naming convention for a resource bundle file in struts2?
How does struts2 token work?
What are the cons of struts 2?
What configuration files are used in struts?
Are interceptors thread safe?
What does validation interceptor?