> To: Struts Users Mailing List
> Subject: RE: Struts2 Rest Mapper Taking Over Non Rest Json Result
>
> to control navigation why not map it? className="org.healthsmart.NonRestfulAction"> name="id">{1}...
> GET: /grid/method="index"
ubject: RE: Struts2 Rest Mapper Taking Over Non Rest Json Result
to control navigation why not map it?{1}
...
GET: /grid/method="index"when you reference /grid/ struts will call
org.healthsmart.NonRestfulAction index method
https://struts.apache.org/docs/restfulactionmapper.html
-together-but
Martin
__
> From: paul.zepern...@healthsmart.com
> To: user@struts.apache.org
> Subject: Struts2 Rest Mapper Taking Over Non Rest Json Result
> Date: Tue, 20 Sep 2016 15:28:42 +
>
> This was also posted to stackoverflow and relevant config informati
This was also posted to stackoverflow and relevant config information can be
seen in the post:
http://stackoverflow.com/questions/39593721/struts2-rest-mapper-taking-over-non-rest-json-result
I am working with the DataTables JS library and am trying to write actions for
the grid. I have a api
The simplest way is to prepare a patch or Pull Request via GitHub -
then I can easily review your proposal
2014-02-26 17:17 GMT+01:00 Felipe Lorenz :
> Hello Lukasz,
>
> There is any impact if we add the following code in the JsonLibHandler
> class:
>
> JsonConfig jsonConfig = new JsonConfig();
>
Hello Lukasz,
There is any impact if we add the following code in the JsonLibHandler
class:
JsonConfig jsonConfig = new JsonConfig();
jsonConfig.setCycleDetectionStrategy(CycleDetectionStrategy.LENIENT);
Just right above the line:
if (target != null && sb.length() > 0 && sb.charAt(0) == '[')
You can always share your work as a patch or a plugin ;-)
2014-02-26 14:00 GMT+01:00 Felipe Lorenz :
> Thanks Lukasz, I think I´ll create a CustomContentTypeHandler.
>
> Em 26/02/2014 04:21, Lukasz Lenart escreveu:
>>
>> 2014-02-25 19:08 GMT+01:00 Felipe Lorenz :
>>>
>>> Hi,
>>>
>>> I was not clea
Thanks Lukasz, I think I´ll create a CustomContentTypeHandler.
Em 26/02/2014 04:21, Lukasz Lenart escreveu:
2014-02-25 19:08 GMT+01:00 Felipe Lorenz
:
Hi,
I was not clear with my doubt. I dont´t want to use json-plugin,
since
rest-plugin already has a json solution.
I wanna try to use 100%
Just a thought
In struts2 json plugin we can have control using annotations. May be you
can seek/find the same in rest plugin.
On Wed, Feb 26, 2014 at 12:51 PM, Lukasz Lenart wrote:
> 2014-02-25 19:08 GMT+01:00 Felipe Lorenz :
> > Hi,
> >
> > I was not clear with my doubt. I dont´t want to use
2014-02-25 19:08 GMT+01:00 Felipe Lorenz :
> Hi,
>
> I was not clear with my doubt. I dont´t want to use json-plugin, since
> rest-plugin already has a json solution.
>
> I wanna try to use 100% of rest-plugin json solution and, at same time, keep
> the control over the data is returned.
I think t
escreveu:
http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-CustomizingSerializationandDeserialization
?
2014-02-25 15:09 GMT+01:00 Felipe Lorenz
:
Hello,
I have been working on projects with Struts2 + Rest + JSON.
It is just perfect.
But, there is always a but, when I
http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-CustomizingSerializationandDeserialization
?
2014-02-25 15:09 GMT+01:00 Felipe Lorenz :
> Hello,
>
> I have been working on projects with Struts2 + Rest + JSON.
>
> It is just perfect.
>
> But, there is
Hello,
I have been working on projects with Struts2 + Rest + JSON.
It is just perfect.
But, there is always a but, when I use JSON as response I have to
define the json plugin and add the rules in the struts.xml file.
I know rest plugin has it own json solution through adding ".jso
Hi All,
I am using the REST plugin for Struts 2.1.3-SNAPSHOT. I want to make
sure that the content encoding for the JSON output from the server is
always in UTF8. How can I do this?
Thanks,
Alex
-
To unsubscribe, e-mail: [EMAIL
14 matches
Mail list logo