cofactor
asked on
weired looking action
I have a weird looking Struts action in struts.xml file.
<action name="getPaymentServicesViewAct ion_*" class="tp.kp.cp.action.Pay mentServic esAction"
method="{1}">
<exception-mapping
exception="tp.kp.cp.except ion.Servic eNotFoundE xception"
result="ServiceNotFoundExc eption" />
<result>/jsp/edit/index.js p</result>
<result name="input">/jsp/edit/ind ex.jsp</re sult>
<result name="error">/jsp/edit/ind ex.jsp</re sult>
</action>
How do I find which method it will hit ? what is method="{1}" ? confused here.
also how do I find which url it will serve ? there is _* in the action name .
<action name="getPaymentServicesViewAct
method="{1}">
<exception-mapping
exception="tp.kp.cp.except
result="ServiceNotFoundExc
<result>/jsp/edit/index.js
<result name="input">/jsp/edit/ind
<result name="error">/jsp/edit/ind
</action>
How do I find which method it will hit ? what is method="{1}" ? confused here.
also how do I find which url it will serve ? there is _* in the action name .
whatever value of * (in getPaymentServicesViewActi on_*) is mapped to method name.
ASKER
>>>whatever value of * (in getPaymentServicesViewActi on_*) is mapped to method name.
Could you please elaborate bit further.
example please.
Could you please elaborate bit further.
example please.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Excellent