Is there a different way to configuring actions in struts2?

后端 未结 1 643
你的背包
你的背包 2021-01-25 21:56

I have requirement to migrate legacy (Struts 1) code to Struts2. If there are multiple methods in same action class, can we configure them in single action tag

相关标签:
1条回答
  • 2021-01-25 22:34

    The action name is overridden if used in the same package. The action name maps to a specific method or execute.

    You can use wildcard mapping to put a method name in the action.

    <action name="*product" class="com.ProductAction" method="{1}">
    
    0 讨论(0)
提交回复
热议问题