How to configure URL patterns to have servlet and Struts2 to work simultaneously?

后端 未结 1 1691
礼貌的吻别
礼貌的吻别 2020-12-03 20:37

Why my filtering does not work for me and how to setup it to work?

There is my web.xml:



        
相关标签:
1条回答
  • 2020-12-03 20:49

    You should add excludePattern constant to struts.xml to exclude servlet mapping URL from Struts processing.

    <struts>
        <constant name="struts.action.excludePattern" value="/gameservlet/?.*"/>
        ...
    </struts> 
    
    0 讨论(0)
提交回复
热议问题