Solved

weired looking action

Posted on 2013-11-28
4
227 Views
Last Modified: 2013-12-14
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 .
0
Comment
Question by:cofactor
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:Manish
ID: 39685023
whatever value of * (in getPaymentServicesViewAction_*) is mapped to method name.
0
 

Author Comment

by:cofactor
ID: 39685204
>>>whatever value of * (in getPaymentServicesViewAction_*) is mapped to method name.

Could you please elaborate bit further.

example please.
0
 
LVL 11

Accepted Solution

by:
Manish earned 300 total points
ID: 39689131
getPaymentServicesViewAction_insert will call insert method.
getPaymentServicesViewAction_delete will call delete method.
0
 

Author Closing Comment

by:cofactor
ID: 39718677
Excellent
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question