Re: JSON plugin 0.33 and Struts 2.1.6 (integrated with Spring 2.5)

2009-08-28 Thread Dave Newton
Please ask this question on the struts-user mailing list. The struts-dev list is for the development of Struts itself. http://struts.apache.org/mail.html Thanks, Dave Gadbury wrote: Hi all, Does anyone have a solution to this? I have exactly the same problem. For example:

Re: JSON plugin 0.33 and Struts 2.1.6 (integrated with Spring 2.5)

2009-08-28 Thread Gadbury
My apologies. For a Collection of objects, one must state which members of the object in the list to include. For example, to retrieve every attribute of the Product object: products.*, productsTotal ...and one can select which attributes to include like so: products.name, products.descriptio

Re: JSON plugin 0.33 and Struts 2.1.6 (integrated with Spring 2.5)

2009-08-28 Thread Gadbury
Hi all, Does anyone have a solution to this? I have exactly the same problem. For example: /customer/products/list_ext.jsp products, productsTotal

Re: JSON plugin 0.33 and Struts 2.1.6 (integrated with Spring 2.5)

2009-03-12 Thread Dave Newton
Dale Newfield wrote: I have no idea. I was just throwing out random theories of what might have been causing this guy grief. Since he was getting a valid value for this attribute ("[]" although he was expecting "['TEST1', 'TEST2']") I think I'm wrong here. Sounds like you *know* that I'm wro

Re: JSON plugin 0.33 and Struts 2.1.6 (integrated with Spring 2.5)

2009-03-12 Thread Dale Newfield
Dave Newton wrote: Dale Newfield wrote: public final List getPayPlanTypes() { return payPlanTypes; } public final void setPayPlanTypes(List payPlanTypes) { this.payPlanTypes = payPlanTypes; } I recognize that "final" for methods is an attempt to make this not-over-ridable, but I wonder

Re: JSON plugin 0.33 and Struts 2.1.6 (integrated with Spring 2.5)

2009-03-12 Thread Musachy Barroso
I don't think that is right. But if you are using AOP that "final" there could cause problems, depending on the implementation. musahcy On Thu, Mar 12, 2009 at 2:42 PM, Dave Newton wrote: > Dale Newfield wrote: >>> >>> public final List getPayPlanTypes() { >>>    return payPlanTypes; >>> } >>> >

Re: JSON plugin 0.33 and Struts 2.1.6 (integrated with Spring 2.5)

2009-03-12 Thread Dave Newton
Dale Newfield wrote: public final List getPayPlanTypes() { return payPlanTypes; } public final void setPayPlanTypes(List payPlanTypes) { this.payPlanTypes = payPlanTypes; } I recognize that "final" for methods is an attempt to make this not-over-ridable, but I wonder if that's not causi

Re: JSON plugin 0.33 and Struts 2.1.6 (integrated with Spring 2.5)

2009-03-12 Thread Dale Newfield
Gregory Slonim wrote: true Is this a stack defined elsewhere or just a single interceptor? If the latter, you're not *adding* this interceptor, you're using *just* this interceptor. public final List getPayPlanTypes() { return payPlanTypes;

JSON plugin 0.33 and Struts 2.1.6 (integrated with Spring 2.5)

2009-03-11 Thread Gregory Slonim
All, I am having a problem returning collections (or arrays) from struts action as JSON. All collection-type data comes back empty (map, array, etc). Setup: struts.xml true