Java 添加多个Struts操作时面临的问题
我在为Java 添加多个Struts操作时面临的问题,java,google-app-engine,struts2,xml-configuration,action-mapping,Java,Google App Engine,Struts2,Xml Configuration,Action Mapping,我在为json类型的结果显示struts操作时遇到了问题。类似的还有LoginJson.action,可以很好地工作。我不明白哪里出了错。我看到的错误是 Error 404 There is no Action mapped for namespace [/] and action name [RegisterJson] associated with context path []. 这是我的密码: ! 您已使用名称RegsiterJson配置了操作,但在URL中输入了RegisterJso
json
类型的结果显示struts操作时遇到了问题。类似的还有LoginJson.action
,可以很好地工作。我不明白哪里出了错。我看到的错误是
Error 404 There is no Action mapped for namespace [/] and action name [RegisterJson] associated with context path [].
这是我的密码:
! 您已使用名称
RegsiterJson
配置了操作,但在URL中输入了RegisterJson
,因此它看起来像是输入错误,或者您可以重定向到该操作
<action name="RegisterJson">
<result type="redirectAction">RegsiterJson</result>
</action>
雷吉斯特森
为什么输入错误的URL?对不起!我不明白你的意思。你能更正网址吗@罗马人