Multiple choice technology programming languages

To specify an ActionMapping to use when a request doesn't match any other mapping, you can

  1. Use an asterisk for the path property

  2. Set the "default" property of the mapping to "true"

  3. Set the "unknown" property of the mapping to "true"

  4. Set the "missing" init-param of the ActionServlet to the mapping's path

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

In Struts 1.x, to create a default/fallback ActionMapping that handles requests not matching any other mapping, you set the 'unknown' property to true on that mapping (option C). This is commonly used for 404-style handling. Option A is incorrect, B uses wrong property name, and D references a non-existent init-param.