Which one is correct?
-
<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>
-
.<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
-
<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>
-
None
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'.