Re: struts2-json-plugin: ExecuteAndWait issue when returning JSON

2023-02-02 Thread Lukasz Lenart
Sorry for a late reply :( pt., 20 sty 2023 o 02:28 Kris O'Neil napisał(a): > > Does it mean you have something else on top of the stack than action? > The original action, held in the background process, is at the top of the > stack. This is the object we want returned when "JSONResult.findRoo

RE: struts2-json-plugin: ExecuteAndWait issue when returning JSON

2023-01-19 Thread Kris O'Neil
Hi Lukasz, > Does it mean you have something else on top of the stack than action? The original action, held in the background process, is at the top of the stack. This is the object we want returned when "JSONResult.findRootObject" is called. The second object in the stack is the action created

Re: struts2-json-plugin: ExecuteAndWait issue when returning JSON

2023-01-19 Thread Lukasz Lenart
czw., 19 sty 2023 o 02:21 Kris O'Neil napisał(a): > Issue: > After upgrading from 2.5.30 to 6.1.1, I found an issue when using the > ExecuteAndWaitInterceptor if the action returns a JSON result. I believe the > issue was introduced in version 6.0.0 on WW-5070. The > JSONResult.findRootObject(.

struts2-json-plugin: ExecuteAndWait issue when returning JSON

2023-01-18 Thread Kris O'Neil
Hi All, Struts version: 6.0.0 - 6.1.1 Issue: After upgrading from 2.5.30 to 6.1.1, I found an issue when using the ExecuteAndWaitInterceptor if the action returns a JSON result. I believe the issue was introduced in version 6.0.0 on WW-5070. The JSONResult.findRootObject(...) method was change

Re: JSON plugin: filter fields in a Map with Lists

2019-10-02 Thread Micael Carreira
ollow with its deletion, so that we can ensure such a mistake does not occur in the future. On 25/09/19 09:18, Yasser Zamani-2 [via Struts] wrote: -Original Message- From: Micael Carreira Sent: Tuesday, September 24, 2019 1:30 PM To: user@struts.apache.org Subject: JSON plu

Re: JSON plugin: filter fields in a Map with Lists

2019-09-27 Thread Yasser Zamani
 Facebook icon <https://www.facebook.com/ITClinical> LinkedIn icon >>> <https://www.linkedin.com/company/itclinical> >>> The content of this email is confidential and intended for the recipient >>> specified in message only. It is st

Re: JSON plugin: filter fields in a Map with Lists

2019-09-27 Thread Micael Carreira
lease reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. On 25/09/19 09:18, Yasser Zamani-2 [via Struts] wrote: -Original Message- From: Micael Carreira Sent: Tuesday, September 24, 2019 1:30 PM To: user@struts.apache.org

Re: JSON plugin: filter fields in a Map with Lists

2019-09-26 Thread Yasser Zamani
take, please reply to this > message and follow with its deletion, so that we can ensure such a > mistake does not occur in the future. > > On 25/09/19 09:18, Yasser Zamani-2 [via Struts] wrote: >> >>> -Original Message- >>> From: Micael Carreira >>

Re: JSON plugin: filter fields in a Map with Lists

2019-09-25 Thread Micael Carreira
er Zamani-2 [via Struts] wrote: -Original Message- From: Micael Carreira Sent: Tuesday, September 24, 2019 1:30 PM To: user@struts.apache.org Subject: JSON plugin: filter fields in a Map with Lists Hello, In MyAction, I have the following instance variable:     Map> result; And My

RE: JSON plugin: filter fields in a Map with Lists

2019-09-25 Thread Yasser Zamani
>-Original Message- >From: Micael Carreira >Sent: Tuesday, September 24, 2019 1:30 PM >To: user@struts.apache.org >Subject: JSON plugin: filter fields in a Map with Lists > >Hello, > >In MyAction, I have the following instance variable: > >     Map

JSON plugin: filter fields in a Map with Lists

2019-09-24 Thread Micael Carreira
Hello, In MyAction, I have the following instance variable:     Map> result; And MyObject has the following properties:     MyObject     |- interestingProperty     |- notInterestingProperty I want to return the action result as a JSON. So, in my struts configuration I have:              

Re: Unknown Error From JSON-Plugin

2018-01-07 Thread j...@rodaxsoft.com
ver, rarely > we are getting the following error when i'm accessing struts2 page. > > Caused by: Unable to load configuration. - bean - > vfs:/content/my-app.ear/lib/struts2-json-plugin-2.5.14.1.jar/struts-plugin.xml:28:30 > at > com.opensymphony.xwork2.c

Re: Unknown Error From JSON-Plugin

2018-01-07 Thread Yasser Zamani
On 1/3/2018 10:47 AM, sreekanth wrote: > I have a view page for displaying some already persisted data, this page most > of the time loads without any error (with the same set of data) and rarely > throws the exception which i have shared here. 75% time i've experienced > this exception when ther

Re: Unknown Error From JSON-Plugin

2018-01-02 Thread sreekanth
I have a view page for displaying some already persisted data, this page most of the time loads without any error (with the same set of data) and rarely throws the exception which i have shared here. 75% time i've experienced this exception when there is class reload happens (as a part of hot deplo

Re: Unknown Error From JSON-Plugin

2018-01-02 Thread Yasser Zamani
On 1/3/2018 9:58 AM, Yasser Zamani wrote: > > > On 1/2/2018 10:31 PM, Yasser Zamani wrote: >> >> >> On 1/2/2018 9:26 PM, Yasser Zamani wrote: >>> Illegal field modifiers in class >>> org/apache/struts2/json/JSONWriter: 0xA >> >> I'm confused :( 0xA means `JVM_ACC_PRIVATE | JVM_ACC_STATIC` but t

Re: Unknown Error From JSON-Plugin

2018-01-02 Thread sreekanth
for ; Tue, 2 Jan 2018 23:50:51 -0700 (MST) Date: Tue, 2 Jan 2018 23:50:51 -0700 (MST) From: sreekanth To: user@struts.apache.org Message-ID: <1514962251558-0.p...@n5.nabble.com> In-Reply-To: References: <1514912818271-0.p...@n5.nabble.com> Subject: Re: Unknown Error

Re: Unknown Error From JSON-Plugin

2018-01-02 Thread Yasser Zamani
On 1/2/2018 10:31 PM, Yasser Zamani wrote: > > > On 1/2/2018 9:26 PM, Yasser Zamani wrote: >> Illegal field modifiers in class >> org/apache/struts2/json/JSONWriter: 0xA > > I'm confused :( 0xA means `JVM_ACC_PRIVATE | JVM_ACC_STATIC` but the > fields in an interface are implicitly public stat

Re: Unknown Error From JSON-Plugin

2018-01-02 Thread Yasser Zamani
On 1/2/2018 9:26 PM, Yasser Zamani wrote: > Illegal field modifiers in class > org/apache/struts2/json/JSONWriter: 0xA I'm confused :( 0xA means `JVM_ACC_PRIVATE | JVM_ACC_STATIC` but the fields in an interface are implicitly public static final i.e. org/apache/struts2/json/JSONWriter.ENUM_AS_

Re: Unknown Error From JSON-Plugin

2018-01-02 Thread sreekanth
I'm already using the latest of JDK 8 :- jdk1.8.0_152 (Linux) -- Sent from: http://struts.1045723.n5.nabble.com/Struts-User-f3426046.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-m

Re: Unknown Error From JSON-Plugin

2018-01-02 Thread Yasser Zamani
On 1/2/2018 8:36 PM, sreekanth wrote: > Caused by: java.lang.ClassFormatError: Failed to link > org/apache/struts2/json/DefaultJSONWriter (Module "deployment.my-app.ear" > from Service Module Loader): Failed to link > org/apache/struts2/json/JSONWriter (Module "deployment.my-app.ear" from > Servi

Unknown Error From JSON-Plugin

2018-01-02 Thread sreekanth
Hi, I'm using struts2-2.5.14.1 in my EAR deployed in wildfly server, rarely we are getting the following error when i'm accessing struts2 page. Caused by: Unable to load configuration. - bean - vfs:/content/my-app.ear/lib/struts2-json-plugin-2.5.14.1.jar/struts-plugin.xml:28:30

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

2017-05-11 Thread developer researcher
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 suggestion is, you

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

2017-05-09 Thread Adam Brin
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. A

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

2017-05-09 Thread Martin Gainty
, May 9, 2017 8:05 AM To: Struts Users Mailing List Subject: Re: Problem using the Spring's AOP in Struts2's Actions with json-plugin MG>below From: developer researcher Sent: Monday, May 8, 2017 10:14 PM To: Struts Users Mailing List Subject: Re: Probl

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

2017-05-09 Thread developer researcher
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

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

2017-05-09 Thread Martin Gainty
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 "ignoreInterfaces" p

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

2017-05-08 Thread Adam Brin
t;, > "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 any case, how would you use your own > serialization instead of the provided by json-plugin for acti

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 "

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
: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 spring-plugin and json-plugin to use: > > 1. Injection of dependencies: apparently everything is wo

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

2017-05-06 Thread Martin Gainty
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 spring-plugin and json-plug

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

2017-05-05 Thread developer researcher
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 ex

Re: How do i prevent Struts 2 json plugin from escaping already formated json?

2015-02-18 Thread Dave Newton
Don't use the JSON plugin? The point of it is to create JSON, but you already have JSON. On Feb 18, 2015 7:18 AM, "bavon mike" wrote: > I already have a json string like: > > {"name": "Simple name", "description": "simple descriptio

How do i prevent Struts 2 json plugin from escaping already formated json?

2015-02-18 Thread bavon mike
I already have a json string like: {"name": "Simple name", "description": "simple description"} When using Struts 2 json plugin, it returns escaped string like: {\"name\": \"Simple name\", \"description\": \"simpl

Re: Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-30 Thread Burton Rhodes
g to set two variable in the object > > > searchCriteria. > > > > However, when the variables are set in the action only one variable > is > > > set, > > > > but not both. If I remove either "searchStringContact" or > > "categories&q

Re: Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-29 Thread JOSE L MARTINEZ-AVIAL
n the object > > searchCriteria. > > > However, when the variables are set in the action only one variable is > > set, > > > but not both. If I remove either "searchStringContact" or > "categories", > > > the remaining value will set fine

Re: Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-29 Thread Burton Rhodes
categories" value it > > overwrites the entire object so the only value that is set is > "categories". > > > > My questions is, if this a bugor a feature in the json-plugin? Or am I > >

Re: Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-29 Thread Burton Rhodes
Apologies for the delay - Thanksgiving got in the way My action is below. Struts and Json plugin version is 2.3.16.3. The SearchCriteria.java object is a standard bean object with getters and setters (no real functionality). My action class is below which is processing the url query

Re: Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-28 Thread Dave Newton
; value it > overwrites the entire object so the only value that is set is "categories". > > My questions is, if this a bugor a feature in the json-plugin? Or am I > doing something wrong here? > > Thanks, > Burton

Re: Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-28 Thread Felipe Lorenz
Hi Burton, It should not be happining. Which version of struts and json plugin are you using? regards, --- FELIPE LORENZ Gerente de Projetos Idealogic Software Fone: (51) 3715 5523 - (51) 3715 5548 www.idealogic.com.br On 28/11/2014 13:29, Burton Rhodes wrote: > I have a simple j

Struts2 Json Plugin - overwrites parameter values in url string?

2014-11-28 Thread Burton Rhodes
ontact" value, then when it comes across the "searchCriteria.categories" value it overwrites the entire object so the only value that is set is "categories". My questions is, if this a bugor a feature in the json-plugin? Or am I doing something wrong here? Thanks, Burton

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Lukasz Lenart
2014-11-05 13:41 GMT+01:00 Pavel Ilyushko : > Hi there! > > Thanks for a swift reply. > > Actually, re-defining the root is what I applied as a work-around. > > So in my struts.xml I have this (to fix setting the parameters on the > action): > > > action >

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Pavel Ilyushko
n-plugin.html#JSONPlugin-RootObject > > 2014-11-05 12:13 GMT+01:00 Pavel Ilyushko : > > Hello there! > > > > Recently I've upgraded our struts2 framework and its related plugins (eg: > > json plugin) from version 2.1.8 to version 2.3.16.3. > > > > Now I&#x

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Łukasz Lenart
You can redefine root http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-RootObject 2014-11-05 12:13 GMT+01:00 Pavel Ilyushko : > Hello there! > > Recently I've upgraded our struts2 framework and its related plugins (eg: > json plugin) from version 2.1.8 to

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Lukasz Lenart
You can re-define root http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-RootObject 2014-11-05 12:13 GMT+01:00 Pavel Ilyushko : > Hello there! > > Recently I've upgraded our struts2 framework and its related plugins (eg: > json plugin) from version 2.1.8 to

Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Pavel Ilyushko
Hello there! Recently I've upgraded our struts2 framework and its related plugins (eg: json plugin) from version 2.1.8 to version 2.3.16.3. Now I'm having problems in using the json plugin while making json requests and returning the json responses. The problem is that the parame

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-29 Thread JOSE L MARTINEZ-AVIAL
The "setArray" method can take as parameter either a "List", or any > numeric > > array. > > > > On Tue, Oct 28, 2014 at 6:45 PM, JOSE L MARTINEZ-AVIAL > > > wrote: > > > >> Unless you use the json inteceptor to map the request boy to the action,

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread Burton Rhodes
eptor to map the request boy to the action, >> you need to send the contact firstName as "contact.firstName", so Struts >> will invoke >> >> setContact(new Contcat()); >> getContact().setFirstName("John"); >> >> -- JSON TEST SUBMISSION

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread Burton Rhodes
he contact firstName as "contact.firstName", so Struts > will invoke > > setContact(new Contcat()); > getContact().setFirstName("John"); > > -- JSON TEST SUBMISSION -- > $.ajax({ > ... other ajax settings ... > // manually insert data for testing > data:

Re: Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread JOSE L MARTINEZ-AVIAL
other ajax settings ... // manually insert data for testing data: {"testValue":"yes","contact.firstName":"John","contactId":100}, }); 2014-10-28 18:19 GMT-04:00 Burton Rhodes : > I am having issues setting nested parameters on an object using th

Struts2 json-plugin - issue setting nested bean?

2014-10-28 Thread Burton Rhodes
I am having issues setting nested parameters on an object using the json-plugin. I've created a basic example that I'm currently testing. When debugging at the "return SUCCESS" line, both the testValue and contactId variables are set correctly. The contact variable, ho

Re: Skip parsing of property for json plugin

2014-06-03 Thread Lukasz Lenart
Hm... I don't see any option for now... extending annotation is a nice thing, can you register a ticket in JIRA? 2014-05-30 17:53 GMT+02:00 Dimitris Mouchritsas : > Hi all, > > I'm using struts2-core 2.3.16.3 along with struts2-json-plugin and I have > the following problem

Skip parsing of property for json plugin

2014-05-31 Thread Dimitris Mouchritsas
Hi all, I'm using struts2-core 2.3.16.3 along with struts2-json-plugin and I have the following problem: I have an entity bean, say Event which has the following 3 properties: id, dateCreated and data data is already a json string saved in the database. e.g.: Event data: {&quo

Re: Struts2 annotation with parameter when using json plugin

2012-09-14 Thread Lukasz Lenart
2012/9/14 Ken McWilliams : > Simply I want to evaluate a property of my action and use it's value > within an annotation. The following is exactly where I want to use it: > > I want to define a excludeProperties parameter at run time. > > Consider the following annotation which currently works on t

Struts2 annotation with parameter when using json plugin

2012-09-13 Thread Ken McWilliams
Simply I want to evaluate a property of my action and use it's value within an annotation. The following is exactly where I want to use it: I want to define a excludeProperties parameter at run time. Consider the following annotation which currently works on the action: @Result(name = "success",

Re: Default Encoding not working in struts2-json plugin

2012-01-06 Thread heamaya
Subject: Re: Default Encoding not working in struts2-json plugin Found it I think it was the Apache Server that was converting the JSON documents to UTF-8. Regards, Néstor Boscán On Fri, Jan 6, 2012 at 8:33 AM, Hernán wrote: > Nestor: first of all, verify that your database has the correct e

Re: Default Encoding not working in struts2-json plugin

2012-01-06 Thread Néstor Boscán
in it: > >  enctype="multipart/form-data; charset=UTF-8" > > This way you are ensuring data is traveling in UTF-8. > > If you're using a different view technology as freemarker or velocity, you > should look for the analog <%@ page ... of it... > > I ho

Re: Default Encoding not working in struts2-json plugin

2012-01-06 Thread Hernán
e analog <%@ page ... of it... I hope this helps you! 2012/1/6 Néstor Boscán > Hi > > I'm using Struts 2 2.1.8.1 with the Struts 2 JSON plugin. I'm using > accented characters and event if I configure the defaultEncoding to > ISO-8859-1 the resulting JSON document is s

Default Encoding not working in struts2-json plugin

2012-01-05 Thread Néstor Boscán
Hi I'm using Struts 2 2.1.8.1 with the Struts 2 JSON plugin. I'm using accented characters and event if I configure the defaultEncoding to ISO-8859-1 the resulting JSON document is sent using UTF-8. In IE it gives a data error because the page encoding ISO-8859-1 is not the same a

Re: Json Plugin & Enum type

2011-12-20 Thread Maurizio Cucchiara
http://struts.apache.org/2.3.1/struts2-plugins/struts2-json-plugin/apidocs/org/apache/struts2/json/annotations/JSONFieldBridge.html

Re: Json Plugin & Enum type

2011-12-20 Thread Maurizio Cucchiara
I understand what you mean, furthermore I found a workaround for it: @JSONFieldBridge(impl = StringBridge.class) public ENUM_TYPE getType() { return type; } Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.l

Re: Json Plugin & Enum type

2011-12-20 Thread Dave Newton
But some people use `toString()` as a generic "let's make this human-readable" method, so it could return essentially anything. I mean, it'd be escaped, so legal JSON, but I'm not sure that's what would be expected. I'm wary. d. On Tue, Dec 20, 2011 at 11:23 AM, Maurizio Cucchiara wrote: > Hi a

Json Plugin & Enum type

2011-12-20 Thread Maurizio Cucchiara
Hi all, while I was trying to jsonify an enum, I realized that the json writer uses the value of the name property in order to serialize an enum (see http://s.apache.org/Usi - row 286). Although it looks like there was a general consensus on the use the name properties (see http://s.apache.org/XRm)

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread Chris Pratt
Then create an inner class within your Action that contains just the information youbwant to include in the JSON and set it as the base object to marshal. (*Chris*) On Nov 3, 2011 12:59 PM, "Daniel Ruan" wrote: > Thanks, everybody. > > I tried ignoreHierarchy, but got a Java reflection excepti

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread jlmagc
List" Subject: Re: JSON Plugin to Include Parent Action's Properties Thanks, everybody. I tried ignoreHierarchy, but got a Java reflection exception. Even if it worked, it would have include too many things I don't want. According to the documentation, it "... serialize prope

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread Daniel Ruan
Thanks, everybody. I tried ignoreHierarchy, but got a Java reflection exception. Even if it worked, it would have include too many things I don't want. According to the documentation, it "... serialize properties in all base classes (up to Object) ". I could try to use the excludeProperties para

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread Maurizio Cucchiara
Take a look at http://struts.apache.org/2.2.3/docs/json-plugin.html#JSONPlugin-BaseClasses Twitter     :http://www.twitter.com/m_cucchiara G+          :https://plus.google.com/107903711540963855921 Linkedin    :http://www.linkedin.com/in/mauriziocucchiara Maurizio Cucchiara On 3 November 2011

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread Nelio Souza Santos Filho
It's a property on action definition. For the example: statusDocumento/list.jsp false dao Abraços, Nelio Souza Santos Filh

Re: JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread jlmagc
There is a property called ignorehierarchy which takes care of that. --Mensaje original-- De: Daniel Ruan Para: Struts Users Mailing List Responder a: Struts Users Mailing List Asunto: JSON Plugin to Include Parent Action's Properties Enviado: 3 Nov, 2011 11:56 Hey, How do I include

JSON Plugin to Include Parent Action's Properties

2011-11-03 Thread Daniel Ruan
Hey, How do I include some of a parent action's properties in the JSON result of an action? In the following example, I'd like MyAction2's JSON result includes name1 and name2 from MyAction1 too. public abstraction class MyAction1 extends ActionSupport { protected String name1; protected

Re: Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-07 Thread Ken McWilliams
I need the root object to be "list" so this isn't going to help. I'm pretty sure it is not trying to serialize the EJB service, the json plugin will only try to serialize properties which have getters. According the debugger there seems to be a public property directly

Re: Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-07 Thread Ken McWilliams
Solved! I've seen a number of posts relating to this issue but none with solutions... In searching for how $JAVASSIST_READ_WRITE_HANDLER came into existence we find: http://www.docjar.com/html/api/org/hibernate/tool/instrument/javassist/FieldTransformer.java.html There we can see the getter for

Re: Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-06 Thread Maurizio Cucchiara
You might take a look at [1], particoularly the section called "root object". That's because I'm afraid that json plugin is trying to serialize your EJB service. HTH [1] struts.apache.org/2.2.3/docs/json-plugin.html Maurizio Cucchiara Il giorno 07/set/2011 07.43, "Ke

Struts2-json-plugin serialization issue with a Hibernate backed JPA entity

2011-09-06 Thread Ken McWilliams
I have a JPA entity, which hibernate is proxying. The following action works as it explicitly states the properties to include, however what I would much rather do is use excludeProperties to remove the problematic property. The problem property when serialized causes a "Positioned Update not su

Re: How to set a List using JSON plugin?

2011-06-04 Thread Burton Rhodes
Although the example I have is simple, the final page is going to have a fairly complex form. I would very much like to submit the data via a json object. I assume this has been done by many since it seems that it would be a frequent request. And is also demonstrated on the json plugin spec page

Re: How to set a List using JSON plugin?

2011-06-04 Thread Maurizio Cucchiara
mp;ignoreTaskIds=3" On 4 June 2011 17:20, Burton Rhodes wrote: > I am trying to do something incredibly simple and for some reason I > cannot get the JSON plugin to work.  Below are a few code snippits. > Can any tell me why I get an error when trying to set a List > when using the

How to set a List using JSON plugin?

2011-06-04 Thread Burton Rhodes
I am trying to do something incredibly simple and for some reason I cannot get the JSON plugin to work. Below are a few code snippits. Can any tell me why I get an error when trying to set a List when using the JSON plugin? Do I need a converter for this? Or am I missing somthing simple

Re: How to test json output from json plugin?

2011-05-10 Thread Frans Thamura
we have full json=struts-spring-hibernate apps please checkout from http://cimande.java.net it is using maven, but little tricky use mysql F - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands

How to test json output from json plugin?

2011-05-10 Thread Jim Talbut
Hi, I've got an action declared as: @Results( { @Result( name="success", type="json", params={ "root", "schools" } ) }) @Namespace("/json") @ParentPackage("json-default") public class SchoolSearchAction extends ActionSupport { and I have a test class that is able to get hold of the actionPro

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Maurizio Cucchiara
. >> >> Which S2 version are we talking about? >> Are there any errors in log ? >> >> >> On 31 March 2011 16:26, Massimo Ugues wrote: >> > Here the post: >> > >> > Hallo all. I have a problem with the struts-json-plugin. >>

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Massimo Ugues
action class source > 2. the action definition. > > Which S2 version are we talking about? > Are there any errors in log ? > > > On 31 March 2011 16:26, Massimo Ugues wrote: > > Here the post: > > > > Hallo all. I have a problem with the struts-json-plugin. >

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Maurizio Cucchiara
11 16:26, Massimo Ugues wrote: > Here the post: > > Hallo all. I have a problem with the struts-json-plugin. > > My action has an association with some JPA entities objects: all of them are > initialized in the action but when they are serialized via json they all are > null.

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Massimo Ugues
Here the post: Hallo all. I have a problem with the struts-json-plugin. My action has an association with some JPA entities objects: all of them are initialized in the action but when they are serialized via json they all are null. Here below is the json text that I receive in front of a

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Michal Ciasnocha
Massimo Ugues wrote on 31.3.2011 15:34: Hallo all. I have a strange issue described here: http://stackoverflow.com/questions/5497037/struts-json-plugin-problem-serializing-jpa-entity <http://stackoverflow.com/questions/5497037/struts-json-plugin-problem-serializing-jpa-entity>Any idea? Kind r

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Dave Newton
Perhaps posting the question here would be of value. Dave On Thu, Mar 31, 2011 at 9:34 AM, Massimo Ugues wrote: > Hallo all. > I have a strange issue described here: > http://stackoverflow.com/questions/5497037/struts-json-plugin-problem-serializing-jpa-entity > > <http:/

Struts2 json plugin problem with jpa entity

2011-03-31 Thread Massimo Ugues
Hallo all. I have a strange issue described here: http://stackoverflow.com/questions/5497037/struts-json-plugin-problem-serializing-jpa-entity <http://stackoverflow.com/questions/5497037/struts-json-plugin-problem-serializing-jpa-entity>Any idea? Kind regards Massimo -- Massimo Ugue

Re: JSON Plugin - my execute method is being called twice

2011-03-15 Thread Rodrigo Esteban Cares Guarda
u get two requests. > >> the first request is for validation and the second is the expected request. > >> > >> Johannes > >> > >> -- > >> View this message in context: > >> http://struts.10

Re: JSON Plugin - my execute method is being called twice

2011-03-15 Thread Muneer Malik
> El mar, 15-03-2011 a las 00:27 -0700, Johannes Geppert escribió: >> if you are using validation it is normaly that you get two requests. >> the first request is for validation and the second is the expected request. >> >> Johannes >> >> -- >> View this messa

Re: JSON Plugin - my execute method is being called twice

2011-03-15 Thread Rodrigo Esteban Cares Guarda
first request is for validation and the second is the expected request. > > Johannes > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/JSON-Plugin-my-execute-method-is-being-called-twice-tp3635553p3681532.html > Sent

Re: JSON Plugin - my execute method is being called twice

2011-03-15 Thread Johannes Geppert
if you are using validation it is normaly that you get two requests. the first request is for validation and the second is the expected request. Johannes -- View this message in context: http://struts.1045723.n5.nabble.com/JSON-Plugin-my-execute-method-is-being-called-twice-tp3635553p3681532

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Muneer Malik
hone >>> >>> On Mar 14, 2011, at 6:45 PM, fr...@meruvian.org wrote: >>> >>> > We got current json plugins also have problem parse json >>> > >>> > I think the json jar is the current issue >>> > >>> > We modify to use jack

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Muneer Malik
think the json jar is the current issue >> > >> > We modify to use jackson >> > >> > Anyone? >> > >> > The actionmapper using jackson we put in github.com/blueoxygen/cimande >> > >> > >> > /m/ >> > >> > --

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Muneer Malik
ok - my observation if I use the sj:submit by itself then the JSON plugin is called only once (confirmed from Chrome developer tool). IF I add the sj:submit inside the sj:dialog - it is called twice IF I add the validation then it is called 6 times it seems like the sj: tags is creating issues

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Muneer Malik
mapper using jackson we put in github.com/blueoxygen/cimande > > > > > > /m/ > > > > -Original Message- > > From: Muneer Malik > > Date: Mon, 14 Mar 2011 19:36:33 > > To: Struts Users Mailing List > > Reply-To: "Struts Users Maili

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread satyanarayana katta
; To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: JSON Plugin - my execute method is being called twice > > Can someone help here? using the JSON plugin - my execute method is being > called twice. > > Thanks > > -- > Co

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread frans
: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: JSON Plugin - my execute method is being called twice Can someone help here? using the JSON plugin - my execute method is being called twice. Thanks -- Confidentiality Notice

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Brian Thompson
On Mon, Mar 14, 2011 at 8:03 PM, Dave Newton wrote: > On Mon, Mar 14, 2011 at 8:36 PM, Muneer Malik wrote: > > Can someone help here? using the JSON plugin - my execute method is being > > called twice. > > So far, it sounds like it's being called twice for

Re: JSON Plugin - my execute method is being called twice

2011-03-14 Thread Dave Newton
On Mon, Mar 14, 2011 at 8:36 PM, Muneer Malik wrote: > Can someone help here? using the JSON plugin - my execute method is being > called twice. So far, it sounds like it's being called twice for some reason. Any other information avail

JSON Plugin - my execute method is being called twice

2011-03-14 Thread Muneer Malik
Can someone help here? using the JSON plugin - my execute method is being called twice. Thanks -- Confidentiality Notice --- THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM

Struts2 2.2.1 exploring annotations with struts2-convention-plugin and struts2-json-plugin

2010-12-13 Thread Ken McWilliams
n omit the Action suffix. IE: testAction.java can be renamed test.java and everything still works. 2) Well this is not annotation related but when working with the struts2-json-plugin-2.2.1 I find it interesting that it needs getters and se

  1   2   3   >