Multiple choice technology web technology

Configuration file Name (struts.xml) can be changed in Struts 2 as was the case in Struts 1.

  1. True

  2. False

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

In Struts 2, the configuration file name 'struts.xml' cannot be changed. The framework hardcodes this name and looks for it in the classpath. This is different from Struts 1, where you could specify a different config file name in web.xml. Struts 2 requires struts.xml to be in a specific location with that exact name.