Caused by: There is no result type defined for type 'json' mapped with name 'rebback'. Did you mean
2012-06-26 08:30
781 查看
这个问题搞得很疼
之后一直运行都出现如下错误,整了几个小时,最后才发现自己傻了,在此提醒下各位软件猿童鞋,别再犯这个错误。
Caused by: There is no result type defined for type 'json' mapped with name 'rebback'. Did you mean 'json'? - result - file:/C:/Users/toshiba/Workspaces/MyEclipse%209/.metadata/.me_tcat/webapps/MyPersonalByStruts/WEB-INF/classes/struts.xml:59:39at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:621)at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)
解决方案:
很简单,导入一个名为struts2-json-plugin-2.1.8.1.jar的包即可
<package name="ajax" extends="struts-default,json-default"> <action name="checkname" class="DiaryAction.CheckName" > <result type="json" name="rebback"></result> </action> </package>
之后一直运行都出现如下错误,整了几个小时,最后才发现自己傻了,在此提醒下各位软件猿童鞋,别再犯这个错误。
Caused by: There is no result type defined for type 'json' mapped with name 'rebback'. Did you mean 'json'? - result - file:/C:/Users/toshiba/Workspaces/MyEclipse%209/.metadata/.me_tcat/webapps/MyPersonalByStruts/WEB-INF/classes/struts.xml:59:39at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:621)at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)
解决方案:
很简单,导入一个名为struts2-json-plugin-2.1.8.1.jar的包即可
相关文章推荐
- Struts2 错误:There is no result type defined for type 'json' mapped with name 'success'.
- There is no result type defined for type 'json' mapped with name 'success'.
- There is no result type defined for type 'json' mapped with name 'success'.
- Caused by: There is no result type defined for type 'json' mapped with name 'success'. Did you mean
- There is no result type defined for type 'json' mapped with name 'success'.
- SSH搭建遇到的问题---There is no result type defined for type 'json' mapped with name 'success'.
- ssh--添加json后,初始化配置一直显示There is no result type defined for type 'json' mapped with name
- There is no result type defined for type 'json' mapped with name 'success'.
- SSH 报 There is no result type defined for type 'json' mapped with name 'success'. 错
- struts中使用json,报错There is no result type defined for type 'json' mapped with name 'success'.
- There is no result type defined for type 'json' mapped with name 'success'
- struts2 配置错误There is no result type defined for type 'json'
- struts2 配置错误There is no result type defined for type 'json'
- struts2整合json出现no result type defined for type 'json'的解决方法
- struts2整合json出现no result type defined for type 'json'的解决方法
- Struts2 使用ajax访问action,返回json格式数据,提示error:There is no result type defined for type 'json'
- no result type defined for type 'dispatch'mapped
- There is no result type defined for type 'json'...
- here is no result type defined for type 'plaintext'解决
- 纯注解方式"There is no Action mapped for namespace [/] and action name [Test] associated with conte"原因