is setting up the InputStream from
> > Gson.
> >
> > setJsonStream(new ByteArrayInputStream(new
> > Gson().toJson(jsonResult).getBytes()));
> >
> >
> > jsonResult is a Map, but could be any object or list of Objects.
> >
> > Paul
> >
> >
1024
> >
> >
> > Here is the line from our action that is setting up the InputStream from
> > Gson.
> >
> > setJsonStream(new ByteArrayInputStream(new
> > Gson().toJson(jsonResult).getBytes()));
> >
> >
> > jsonResult is a
or list of Objects.
>
> Paul
>
>
> -Original Message-
> From: Harsh C [mailto: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. "Not blessed&q
).getBytes()));
jsonResult is a Map, but could be any object or list of Objects.
Paul
-Original Message-
From: Harsh C [mailto: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
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 wrote:
>
>
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
success.
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, "Mauriz
t: Tuesday, 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
D
What do you mean by "not blessed"?
Maurizio Cucchiara
Il giorno 09/mar/2011 00.24, "Harsh C" 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 AJAX-ified app usin
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 wrote:
> Hi,
>
> I don't know if this is the right list for a question re
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
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 r
12 matches
Mail list logo