Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread Adam Brin
We just set content-type to application json and output a stream or a string. In the action, I just convert the object to a stream. But, here's the question: does your spring AOP proxy work properly with Jackson outside of struts2? On Mon, May 8, 2017 at 7:14 PM, developer researcher < java.d

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread developer researcher
Hello Adam, Yes, I am using the "ignoreInterfaces" param set to "false". My result is: "@Result(name="success",type="json", params={"contentType", "text/html", "ignoreInterfaces", "false"})" The file "struts-2.5.10.1-all.zip" contains the jackson's jars, so I guess the json-plugin use jackson.In

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread Adam Brin
Hi, I presume you’ve read this: https://struts.apache.org/docs/json-plugin.html#JSONPlugin-Proxiedobjects It may be that the issue is not Struts2, but the JSON library that the Struts2 Json plugin uses… and thus, you may need to handle the JSON serialization using Jackson or another library.

Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin

2017-05-08 Thread developer researcher
Hello Martin, First of all thanks for the reply, but I'm not sure if my queries have been understood. I am using Struts 2.5.10.1 My main query is: *Is there a way to use Spring AOP in Struts2 Actions using the "JDK dynamic proxies"? Does anyone have an example?* Sorry, but I can not find any rel