Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

weired looking action

Posted on 2013-11-28
4
Medium Priority
?
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

618 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