Solved

weired looking action

Posted on 2013-11-28
4
230 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
runtime exception 2 50
ejb stateless example 2 40
spring maven example issues 3 37
Running JavaFX on the Raspberry Pi 27 119
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

685 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