is this a bug?<package name="x" extends="json-default">
<action name="t" method="doit">
<result type="json">
<param name="includeProperties">b</param>
</result>
</action>
</package>in the action: Integer[] b = new Integer[]Unknown macro: {1,2,3,4}
; and have get,set methods.when i config result like this:<result type="json">
<param name="includeProperties">b</param>
</result>this output is: Unknown macro: {"b"}
this "b" is empty!!when i config result like this:<result type="json">
<param name="root">b</param>
</result>this output is: [1,2,3,4]this is the right data.if i don't config any param form the resutl tag. every variable Will correctly output.so,,,, it seems somthing wrong with the includeProperties tag.how should i do?
<action name="t" method="doit">
<result type="json">
<param name="includeProperties">b</param>
</result>
</action>
</package>in the action: Integer[] b = new Integer[]Unknown macro: {1,2,3,4}
; and have get,set methods.when i config result like this:<result type="json">
<param name="includeProperties">b</param>
</result>this output is: Unknown macro: {"b"}
this "b" is empty!!when i config result like this:<result type="json">
<param name="root">b</param>
</result>this output is: [1,2,3,4]this is the right data.if i don't config any param form the resutl tag. every variable Will correctly output.so,,,, it seems somthing wrong with the includeProperties tag.how should i do?
解决方案 »
- 关于js生成input问题,请帮忙看一下这个代码。
- 看了十天但是还是写不出来,时间不够了,哪位能帮忙给我一个Java Web 进销存管理系统啊?谢谢了
- 用ExtJS4写的一个combobox下拉框里面木有值 求大侠指点
- 谁帮我看下总是调不对(jsp)
- 搜狗浏览器记忆功能实现
- Cookie具体是用在什么地方?
- 请问如何利用javascript动态生成table中的行?
- JAVA EXCEL 怎么实现读取一个EXCEL文件,然后修改指定行、列的数据???在线等!急急急!!!!
- 这个错误提示是什么原因呢,向前辈高手请教!(特急)
- 求助 如何打开客户端程序 在线等待
- ibatis + oracle的函数传参问题 。。在线等。。。。
- 页面selectOneRadio重置reset问题
解决办法:
<param name="includeProperties">b\[\d+\]</param>
原因就是必须详细指明包含b的什么,也就是用到正则。\[和\]就是数组的[]括号,\d是数字,+代表出现正整数次。
如果b是一个对象,就用b.*
如果是一个对象数组也可以用b.*