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
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. Thanks, Felipe Lorenz Em 25/02/2014 13:25, Lukasz Lenart e

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 always a but, when I us

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 ".json" in the

Re: globaly escapeAmp

2014-02-25 Thread Lukasz Lenart
2014-02-25 14:48 GMT+01:00 Alireza Fattahi : > I found this in some pages, and thought may be the option is there: > > http://code.google.com/p/struts2-jquery/issues/detail?id=51‎ > > https://github.com/Dinous/d3kode/blob/master/src/struts.xml‎ It looks like something jQuery Plugin specific Rega

Re: globaly escapeAmp

2014-02-25 Thread Alireza Fattahi
I found this in some pages, and thought may be the option is there: http://code.google.com/p/struts2-jquery/issues/detail?id=51‎ https://github.com/Dinous/d3kode/blob/master/src/struts.xml‎   ~Regards, ~~Alireza Fattahi On Tuesday, 25 February 2014, 13:48, Lukasz Lenart wrote: 2014-02-24

Struts 2 defining a base action

2014-02-25 Thread Alireza Fattahi
We are creating a base action to manage export function. This base class deals with file name and content type. public class public abstract class AbstractExportAction{ //Will be override protected abstract InputStream exportInputStream() ; @Action(value = "export", results = { @Result(name = "

Re: StrutsTestCase issues with basic jsp via convention plugin

2014-02-25 Thread Lukasz Lenart
Can you publish the whole project at GitHub instead of the gist? 2014-02-23 18:35 GMT+01:00 John Patrick : > Hi, > > Having some issues around automated testing using struts2-junit-plugin > accessing a jsp via struts2-convention-plugin. > > Basically the following two url's; > http://struts.apache

Re: globaly escapeAmp

2014-02-25 Thread Lukasz Lenart
2014-02-24 10:41 GMT+01:00 Alireza Fattahi : > Is there any way to globally disable escape when generating url with s:url ?! > I found some one mentioned this: > > There is no such option in Struts - maybe someone did a custom interceptor or org.apache.struts2.components.UrlRenderer Regards --

Re: Assign html id to token

2014-02-25 Thread Lukasz Lenart
It isn't supported but we accept patches :-) In that case you can only reference those values via name. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2014-02-24 10:44 GMT+01:00 Alireza Fattahi : > I try to ready token via javascript. > > The will not generate the id ! and still