【问题标题】:Facing issue in adding mutiple Struts actions添加多个 Struts 动作时面临的问题
【发布时间】:2014-10-18 10:11:30
【问题描述】:

我在为json 类型的结果显示struts 操作时遇到问题。在类似的情况下,LoginJson.action 工作正常。我不明白错误在哪里。我能看到的错误是

Error 404 There is no Action mapped for namespace [/] and action name [RegisterJson] associated with context path [].

这是我的代码:

!

【问题讨论】:

  • 为什么输入错误的网址?
  • 对不起!我不明白你的意思。你能更正网址吗..@RomanC​​pan>

标签: java google-app-engine struts2 xml-configuration action-mapping


【解决方案1】:

您已配置名称为 RegsiterJson 的操作,但您在 URL 中输入了 RegisterJson,因此它看起来像是拼写错误,或者您可以重定向到操作

<action name="RegisterJson">
  <result type="redirectAction">RegsiterJson</result>
</action> 

【讨论】:

    猜你喜欢
    • 2014-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-24
    • 2020-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多