【问题标题】:struts '.action' not defaulting into URLstruts '.action' 不默认为 URL
【发布时间】:2015-06-25 15:55:30
【问题描述】:

我想知道为什么我的 Struts 应用程序会引导我到

https://myhost.com/myThing/myThing?pickListId=2000000011

代替:

https://myhost.com/myThing/myThing.action?pickListId=2000000011

这些不应该显示相同的东西吗?顶部 URL 将我定向到 404 页面,底部正常工作。

【问题讨论】:

标签: struts2


【解决方案1】:

我解决了我的问题。结果在我的 web.xml 中,我的过滤器映射只是将包含 .action 的 url 定向到 Struts。我只需要更改过滤器映射,以便允许所有请求转到 Struts。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-05-13
    • 2017-01-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-22
    • 2017-08-03
    • 1970-01-01
    相关资源
    最近更新 更多