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 of Above

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

In Struts configuration, the tag is used to initialize bean properties on ActionMapping. The correct syntax uses 'property' and 'value' attributes. Option A uses which is not a valid Struts tag. Option C uses which is not valid syntax. The correct approach is Option B with .