Of course Adam,
If no solution is found by configuration, there is to try other
alternatives without the json-plugin. As you indicate using the stream
result.
Thanks and regards.
2017-05-09 17:52 GMT-05:00 Adam Brin :
> Hi,
> I don't use the JSON plugin. My
Hi,
I don't use the JSON plugin. My suggestion is, you're using a number of
tools in a chain, one isn't working, so what's the minimum viable way out?
Clearly something with the JSON plugin isn't working, so try and verify
where the problem is and work around it. Alternately, it might make
MG>
here is an example which uses Springs AOP to set a interface to a AOP Context
type
http://techqa.info/programming/question/29553557/issue-configuring-multiple-datasources-in-spring-data-jpa
first creates a context
populates context type with DataSource interface
this is of course
Hi Adam,
I have not tried Jackson and the Spring AOP outside of Struts2. My context
is: modify a Struts web application (with spring-plugin and json-plugin) to
add some functionality (advices) through AOP. I would have to test in
another application to see if there is any problem between Jackson
MG>below
From: developer researcher
Sent: Monday, May 8, 2017 10:14 PM
To: Struts Users Mailing List
Subject: Re: Problem using the Spring's AOP in Struts2's Actions with
json-plugin
Hello Adam,
Yes, I am using the
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 <
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
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.
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
MG>below
From: developer researcher
Sent: Friday, May 5, 2017 10:09 PM
To: Struts Users Mailing List
Subject: Problem using the Spring's AOP in Struts2's Actions with json-plugin
Hello,
I am using Strust 2 with
Hello,
I am using Strust 2 with spring-plugin and json-plugin to use:
1. Injection of dependencies: apparently everything is working well.
2. Spring's AOP: works when applied over methods of injected objects in the
Struts Actions but not when applied over methods of actions (my class
extends
11 matches
Mail list logo