How to map long REST urls in struts2 - using struts2 rest plugin

后端 未结 1 2004
面向向阳花
面向向阳花 2021-01-06 10:05

I\'ve been learning to use struts2 rest plugin from a past few days. But no-where I found how to map long rest URLs.

For e.g. If I want to map an URL like below :

1条回答
  •  庸人自扰
    2021-01-06 10:10

    You can do it with Advanced Wildcard Mappings, without the REST plugin:

    /profiles/user-test/orders/64/item/4

    username is user-test

    order id is 64

    item id is 4

    The action configuration needed for this example would be:

    
        fooBar.jsp
    
    

    0 讨论(0)
提交回复
热议问题