Link to home
Start Free TrialLog in
Avatar of cofactor
cofactor

asked on

weired looking action

I  have a weird looking Struts action  in struts.xml  file.

<action name="getPaymentServicesViewAction_*" class="tp.kp.cp.action.PaymentServicesAction"
                  method="{1}">
                  <exception-mapping
                        exception="tp.kp.cp.exception.ServiceNotFoundException"
                        result="ServiceNotFoundException" />
                  <result>/jsp/edit/index.jsp</result>
                  <result name="input">/jsp/edit/index.jsp</result>
                  <result name="error">/jsp/edit/index.jsp</result>
</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 .
Avatar of Manish
Manish
Flag of India image

whatever value of * (in getPaymentServicesViewAction_*) is mapped to method name.
Avatar of cofactor
cofactor

ASKER

>>>whatever value of * (in getPaymentServicesViewAction_*) is mapped to method name.

Could you please elaborate bit further.

example please.
ASKER CERTIFIED SOLUTION
Avatar of Manish
Manish
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Excellent