日期:2014-05-16  浏览次数:20523 次

关于JSON结果输出Action所有属性的问题
<action name="addCourse" class="org.dreamfly.core.action.StudentAction" method="addCourse">
            <result type="json">
                <param name="includeProperties" >
                    message
                </param>
            </result>
            <result type="json" name="FULL"></result>
            <result type="json" name="ERROR"></result>
        </action>

如果没写<param name="includeProperties" >
                    message
                </param>
会将Action所有属性都转成JSON格式输出