Re: Struts2 Rest Mapper Taking Over Non Rest Json Result

2016-09-20 Thread Ken McWilliams
> 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"

RE: Struts2 Rest Mapper Taking Over Non Rest Json Result

2016-09-20 Thread Paul Zepernick
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

RE: Struts2 Rest Mapper Taking Over Non Rest Json Result

2016-09-20 Thread Martin Gainty
-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

Struts2 Rest Mapper Taking Over Non Rest Json Result

2016-09-20 Thread Paul Zepernick
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

Re: Rest + JSON

2014-02-26 Thread Lukasz Lenart
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(); >

Re: Rest + JSON

2014-02-26 Thread Felipe Lorenz
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) == '[')

Re: Rest + JSON

2014-02-26 Thread Lukasz Lenart
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

Re: Rest + JSON

2014-02-26 Thread 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 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%

Re: Rest + JSON

2014-02-26 Thread Rahul Tokase
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

Re: Rest + JSON

2014-02-25 Thread Lukasz Lenart
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

Re: Rest + JSON

2014-02-25 Thread Felipe Lorenz
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

Re: Rest + JSON

2014-02-25 Thread Lukasz Lenart
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

Rest + JSON

2014-02-25 Thread 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 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

Struts2, REST, JSON content encoding, UTF8

2008-11-13 Thread Alex Milanovic
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