How you will make available any message resources definitions file to the struts framework environment?



How you will make available any message resources definitions file to the struts framework environme..

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

Post New Answer

More Struts Interview Questions

How can you create your custom interceptor in struts 2?

1 Answers  


What is the purpose of @customvalidator annotation?

1 Answers  


What is the purpose of redirect result type?

1 Answers  


What is the use of Struts.xml configuration file?

1 Answers  


What happens when Two users requests for same action class? How the threads are controlled?

4 Answers  


Which parser is used in Struts to parse the Structconfig.xml file.

21 Answers   iFlex,


What is the naming convention for a resource bundle file in struts2?

1 Answers  


How does struts2 token work?

1 Answers  


What are the cons of struts 2?

1 Answers  


What configuration files are used in struts?

1 Answers  


Are interceptors thread safe?

1 Answers  


What does validation interceptor?

1 Answers  


Categories