struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alfredo Manuel Osorio Martinez" <alfredo.oso...@afirme.com>
Subject RE: ActionErrors and ActionMessages not included in the result generated by org.apache.struts2.json.JSONResult
Date Mon, 22 Nov 2010 22:20:35 GMT
I found out looking at the code that in order that properties of
superclass get included in the json output you need to set
ignoreHierarchy param to false:
			<result type="json">
				<param
name="ignoreHierarchy">false</param>
			</result>

Alfredo Osorio
-----Mensaje original-----
De: Alfredo Manuel Osorio Martinez 
Enviado el: Monday, November 22, 2010 2:03 PM
Para: Struts Users Mailing List
Asunto: ActionErrors and ActionMessages not included in the result
generated by org.apache.struts2.json.JSONResult

Hello,

I'm trying to generate a json output with the JSONResult but the problem
is that actionMessages and actionErrors properties are not being
included.

I also tried to pass this parameter to the interceptor but it didn't
work:
			<result type="json">
				<param
name="includeProperties">actionErrors,actionMessages</param>
			</result>

Please help, what am I doing wrong?

Thanks in advance

Alfredo Osorio

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message