Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread GF
You're right too ;-) I didn't want to substitute to the plugin documentation. I'd prefer the "include properties" behaviour anyway. I believe a good idea could be to use @JsonInclude annotation on the entity properties to define (just ONE time on the entities) which of their properties are "safe t

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread Nils-Helge Garli Hegvik
Did you look at the "Excluding properties" example in the json plugin documentation? Nils-H On Mon, Jul 13, 2009 at 9:15 AM, GF wrote: > You're absolutely right, > but there is a "security reason", in real-world application, the > objects i get from business service, are usually JPA entities, and

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread GF
You're absolutely right, but there is a "security reason", in real-world application, the objects i get from business service, are usually JPA entities, and putting a "full JPA entity" on the json result will lead to issues in the case there are some properties of that object that have to kept "hid

RE: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread Vishnu Vyasan Nelliparmbil
Good Stuff, Thanks a Lot. Expecting more in future. -Original Message- From: GF [mailto:gan...@gmail.com] Sent: Monday, July 13, 2009 10:10 AM To: Struts Users Mailing List; fr...@meruvian.org Subject: Re: Struts2, JQuery and JSON result to create a dynamic ajax website Thank You for

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread GF
Thank You for the nice comment. I just wrote some code snippets for the tutorials.. i didn't have enough time to build a full eclipse web project, if you have some difficulties, ask :-) On Mon, Jul 13, 2009 at 12:33 AM, Frans Thamura wrote: > Cool. Can I have the full code? Frans

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-12 Thread Wes Wannemacher
On Sunday 12 July 2009 03:49:54 pm GF wrote: > Hello all, > i wrote a simple guide that explains how to use together Struts2 and > JQuery to create dynamic content with Ajax and JSON. > > http://www.zulutown.com/blog/2009/07/12/ajax-dynamic-content-with-struts2-j >query-and-json-plugin/ > > I hope

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-12 Thread Frans Thamura
Cool. Can I have the full code? Frans --Original Message-- From: GF To: Struts Users ML ReplyTo: Struts Users Mailing List Subject: Struts2, JQuery and JSON result to create a dynamic ajax website Sent: Jul 13, 2009 02:49 Hello all, i wrote a simple guide that explains how to use together

Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-12 Thread GF
Hello all, i wrote a simple guide that explains how to use together Struts2 and JQuery to create dynamic content with Ajax and JSON. http://www.zulutown.com/blog/2009/07/12/ajax-dynamic-content-with-struts2-jquery-and-json-plugin/ I hope someone can appreciate it Thank You -