Multiple choice technology programming languages

Which one is correct?

  1. <actionpath="/r4r" type="org.apache.struts.webapp.example.EditSubscriptionAction" name="r4rForm" scope="request" validate="false"> <forward name="failure" path="/index.jsp"/> <forward name="success" path="/admin.jsp"/> </action>

  2. .<action classpath="/r4r" type="org.apache.struts.webapp.example.EditSubscriptionAction" name="r4rForm" scope="request" validate="false"> <forward name="failure" path="/index.jsp"/> <forward name="success" path="/admin.jsp"/> </action

  3. <action path="/r4r" type="org.apache.struts.webapp.example.EditSubscriptionAction" id="r4rForm" scope="request" validate="false"> <forward name="failure" path="/index.jsp"/> <forward name="success" path="/admin.jsp"/> </action>

  4. None

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

In Struts config, the tag uses 'path' (not 'classpath' or 'actionpath') to specify the URL mapping. Option A is correct with path="/r4r". Option B incorrectly uses 'classpath' and has a typo with '.' before action. Option C incorrectly uses 'id' instead of 'name'. The correct attribute for associating a form bean with an action is 'name'.