Solved

weired looking action

Posted on 2013-11-28
4
222 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
Comment Utility
whatever value of * (in getPaymentServicesViewAction_*) is mapped to method name.
0
 

Author Comment

by:cofactor
Comment Utility
>>>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
Comment Utility
getPaymentServicesViewAction_insert will call insert method.
getPaymentServicesViewAction_delete will call delete method.
0
 

Author Closing Comment

by:cofactor
Comment Utility
Excellent
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now