Multiple choice technology web technology

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

In Struts configuration, the tag is used to set bean properties on ActionMapping and other configured objects. The tag requires 'property' and 'value' attributes. is not a valid Struts tag, and serves a different purpose in Struts configuration.