How to prevent the wildcard namespace in struts?

后端 未结 1 1566
醉酒成梦
醉酒成梦 2020-12-19 17:30

I am facing a problem that I couldn\'t find a key word for googleing the following situation:



        
相关标签:
1条回答
  • 2020-12-19 18:11

    Set the alwaysSelectFullNamespace property to true.

    From struts-default.properties:

    ### Whether to always select the namespace to be everything before the last slash or not
    struts.mapper.alwaysSelectFullNamespace=true
    

    XML configuration is preferred, so in your struts.xml:

    <struts>
      <constant name="struts.mapper.alwaysSelectFullNamespace" value="true" />
      ...
    
    0 讨论(0)
提交回复
热议问题