Struts 2 - Mapped Actions working with any URL

后端 未结 1 1533
梦毁少年i
梦毁少年i 2021-01-03 02:16

I am creating a web app with Struts2, and I am having an issue with the mapped actions working with any url.

In my struts.xml file, I have configured a package with

相关标签:
1条回答
  • 2021-01-03 02:47

    Set the struts.mapper.alwaysSelectFullNamespace constant to true:

    <constant name="struts.mapper.alwaysSelectFullNamespace" value="true" />
    

    This may have unintended consequences when leveraging S2's support for arbitrary parameters in URLs (e.g., wildcarding, regex pattern matching).

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