Multiple choice technology programming languages

If you have created a custom ActionMapping subclass with the property "service", you can initialize the value to "selectRecord" using

  1. <init-property name="service" value="selectRecord"/>

  2. <set-property property="service" value="selectRecord"/>

  3. <put-field key="service" content="selectRecord"/>

  4. None

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

When creating custom ActionMapping subclasses with additional properties in Struts, you initialize those properties using the tag within the configuration. The syntax is . Option A uses wrong tag name, C uses wrong element, and D is incorrect.