Re: Struts 2.0.11.1 question

2011-03-10 Thread Harsh C
, but could be any object or list of Objects. Paul -Original Message- From: Harsh C [mailto:hchau...@gmail.com hchau...@gmail.com] Sent: Wednesday, March 09, 2011 7:24 AM To: Struts Users Mailing List Subject: Re: Struts 2.0.11.1 question Thanks for the responses all

RE: Struts 2.0.11.1 question

2011-03-09 Thread Jose Luis Martinez Avial
, March 08, 2011 6:24 PM To: Struts Users Mailing List Subject: Struts 2.0.11.1 question Hi, I don't know if this is the right list for a question regarding 2.0.11.1, if not please let me know the right forum. I am trying to use Struts 2.0.11.1 to work on an AJAX-ified app using Dojo. Problem

Re: Struts 2.0.11.1 question

2011-03-09 Thread Harsh C
Thanks for the responses all. Not blessed just means that it is not in the list of s/w that we are allowed to work with. I ended up writing just a plain servlet for now to serve the JSON string which works well enough, except the JSON parsing part of course. HC On Mar 9, 2011 1:19 AM, Maurizio

Re: Struts 2.0.11.1 question

2011-03-09 Thread Chris Pratt
sarcasm Yes, it makes perfect sense to go outside of your chosen technology stack and use a home grown solution to a problem rather than to use a tool developed and tested by a community that you already trust (or you wouldn't be using Struts at all). That's definitely the recipe for long term

Re: Struts 2.0.11.1 question

2011-03-09 Thread Dave Newton
I agree 100%... Companies that expect an in-house, ad-hoc system to be of better quality, and/or faster to implement, and/or etc. are almost always 100% wrong. How is S2 blessed but one of its officially-supported components *not*?! Dave On Wed, Mar 9, 2011 at 11:24 AM, Chris Pratt

RE: Struts 2.0.11.1 question

2011-03-09 Thread Paul Zepernick
, March 09, 2011 7:24 AM To: Struts Users Mailing List Subject: Re: Struts 2.0.11.1 question Thanks for the responses all. Not blessed just means that it is not in the list of s/w that we are allowed to work with. I ended up writing just a plain servlet for now to serve the JSON string which works

Re: Struts 2.0.11.1 question

2011-03-09 Thread Chris Pratt
())); jsonResult is a Map, but could be any object or list of Objects. Paul -Original Message- From: Harsh C [mailto:hchau...@gmail.com hchau...@gmail.com] Sent: Wednesday, March 09, 2011 7:24 AM To: Struts Users Mailing List Subject: Re: Struts 2.0.11.1 question Thanks for the responses all

(O/T) RE: Struts 2.0.11.1 question

2011-03-09 Thread Martin Gainty
: Struts 2.0.11.1 question Thanks for the responses all. Not blessed just means that it is not in the list of s/w that we are allowed to work with. I ended up writing just a plain servlet for now to serve the JSON string which works well enough, except the JSON parsing part of course

Struts 2.0.11.1 question

2011-03-08 Thread Harsh C
Hi, I don't know if this is the right list for a question regarding 2.0.11.1, if not please let me know the right forum. I am trying to use Struts 2.0.11.1 to work on an AJAX-ified app using Dojo. Problem is, struts-json plugin is not blessed. Is there a way in which I can code an Action which

Re: Struts 2.0.11.1 question

2011-03-08 Thread Brian Thompson
You can definitely write an Action to return a JSON string -- just set the content-type of the response appropriately and instead of writing HTML to the response, write your JSON string. If you're comfortable with JSON and Javascript in general, it should be easy. -Brian On Tue, Mar 8, 2011 at

Re: Struts 2.0.11.1 question

2011-03-08 Thread Chris Pratt
The simplest way is just to use a JSP that generates the JSON you want, then set the contentType parameter of the result to application/json and you should be good to go. (*Chris*) On Tue, Mar 8, 2011 at 3:23 PM, Harsh C hchau...@gmail.com wrote: Hi, I don't know if this is the right list

Re: Struts 2.0.11.1 question

2011-03-08 Thread Maurizio Cucchiara
What do you mean by not blessed? Maurizio Cucchiara Il giorno 09/mar/2011 00.24, Harsh C hchau...@gmail.com ha scritto: Hi, I don't know if this is the right list for a question regarding 2.0.11.1, if not please let me know the right forum. I am trying to use Struts 2.0.11.1 to work on an