Multiple choice technology web technology

The name of the Application Resources file is set by the servlet init-param named

  1. application

  2. resources

  3. ApplicationResources

  4. messages

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Application Resources file name is set by the servlet init-param named "application" in web.xml. This parameter specifies the base name of the resource bundle properties file.

AI explanation

Correct answer: 'application'. In the Apache Struts framework, the servlet init-param named 'application' (configured in web.xml on the ActionServlet) specifies the base name of the resource bundle properties file — conventionally called ApplicationResources.properties — that holds the application's localized messages/labels. 'resources', 'ApplicationResources', and 'messages' are plausible-sounding distractors but are not the actual init-param key Struts looks for; the framework specifically reads the 'application' parameter to locate the bundle.