首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

There is no result type defined for type 'plaintext'.

2012-09-22 
There is no result type defined for type plaintext...今天从网上看了Struts2返回XML格式 http://xia9

There is no result type defined for type 'plaintext'...

今天从网上看了Struts2返回XML格式 http://xia9527.iteye.com/blog/650212#comments这篇文章,按照作者的写法写了,却没得到想要的结果,很显然不是作者的原因,因为网上给的方法都是这么写的,差不多调了我一个上午的时间,没烦死,最后在console里发现了这个错误

There is no result type defined for type 'plaintext' mapped with name 'xmlMessage'.

上网找了找发现要改成

<action name="outxml" method="outxml">
<result name="xmlMessage" type="plainText"></result>
</action>

注意是struts2.1版本后plaintext改为了plainText了~~~~真叫人无语,不知道为啥struts非要在这种细微末节上改,写下这篇以纪念我悲哀的一上午吧。。。谁叫我能力不够强呢,顺便说一句javaeye的编辑器要升升级了吧,太难用了,我的IE9上只能打字了,啥效果都没了~~

另外有哪位大侠知道struts-2.2.1.1怎么配javadoc,告诉我一声哈。

热点排行