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: Json result

2014-09-01 Thread Christoph Nenning
t;b"},"2": > {"property":"c"}},"anString":"hello","anotherList":{"0": > {"prop1":"a","prop2":"b"},"1":{"prop1":"c","prop2":"d&quo

Json result

2014-08-30 Thread Alireza Fattahi
)})publicStringloadSomeSamples(){samples =newArrayList();//Put some object in samples.returnSUCCESS;}} This will result to: {"samples":{"0":{"property":"a"},"1":{"property":"b"},"2":{"property":"c"}

Re: [Struts2] SessionToken Interceptor used with json Result and Javascript Calls

2012-11-07 Thread Ken McWilliams
jsp pages. But in one case, I call an > action from javascript via jquery.ajax and return a json result. > > To do that, I added two properties to the json result object > (documenTable) with token and tokenName and populate them in the action with > documentTable.setTo

[Struts2] SessionToken Interceptor used with json Result and Javascript Calls

2012-11-07 Thread Jan Fröhlich
Hi... I try to secure one of my web applications with tokens. Everything works fine with basic jsp pages. But in one case, I call an action from javascript via jquery.ajax and return a json result. To do that, I added two properties to the json result object (documenTable) with token and

Re: json result type not parse OGNL expressions in params

2012-10-22 Thread Lukasz Lenart
2012/10/22 JOSE L MARTINEZ-AVIAL : > I just created the issue: > > https://issues.apache.org/jira/browse/WW-3906 > > I think I can implement part of this issue on my own. What do I need to do > in order to collaborate in this? Just prepare a patch and attach it to the issue with granting rights to

Re: json result type not parse OGNL expressions in params

2012-10-22 Thread JOSE L MARTINEZ-AVIAL
I just created the issue: https://issues.apache.org/jira/browse/WW-3906 I think I can implement part of this issue on my own. What do I need to do in order to collaborate in this? Thanks JL 2012/10/22 Lukasz Lenart > 2012/10/21 JOSE L MARTINEZ-AVIAL : > > I just reviewed the code, and it se

Re: json result type not parse OGNL expressions in params

2012-10-22 Thread Lukasz Lenart
2012/10/21 JOSE L MARTINEZ-AVIAL : > I just reviewed the code, and it seems that the HttpHeaderResult only > parses the parameters headers and errorMessage, but not the parameters > status or error. I think it could be a nice thing to have. my workaround is > to extend JSONResult incorporating the

Re: json result type not parse OGNL expressions in params

2012-10-21 Thread JOSE L MARTINEZ-AVIAL
I just tried that, but it does not make any difference. 2012/10/21 Per Pascal Grube > Hi, > > On Sunday 21 October 2012 03:12:07 JOSE L MARTINEZ-AVIAL wrote: > > Hi, > > I'm using a json result type defined as follows: > > > > class="org.apache.struts

Re: json result type not parse OGNL expressions in params

2012-10-21 Thread Per Pascal Grube
Hi, On Sunday 21 October 2012 03:12:07 JOSE L MARTINEZ-AVIAL wrote: > Hi, > I'm using a json result type defined as follows: > > > false > name="includeProperties">resultName,resultMessage,data.*,fieldErrors.*,actio > nErrors.*,actionMessages.* n

Re: json result type not parse OGNL expressions in params

2012-10-21 Thread JOSE L MARTINEZ-AVIAL
Hi, > I'm using a json result type defined as follows: > > > false > name="includeProperties">resultName,resultMessage,data.*,fieldErrors.*,actionErrors.*,actionMessages.* > true > true > ${errorCode} > > > Everything works great, except the p

RE: JSON Result Behavior with Struts 2.2.3

2011-06-01 Thread CRANFORD, CHRIS
their modiciation to use invocation.getStack().getContext().put("myObj",x); The expected results work as intended. Chris -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Wednesday, June 01, 2011 11:14 AM To: Struts Users Mailing List Sub

JSON Result Behavior with Struts 2.2.3

2011-06-01 Thread CRANFORD, CHRIS
I recently upgraded to Struts 2.2.3 and noticing that result types of JSON are not behaving the same way as they did before. For example, the following action is setup: --- Action Class --- package com.setech.dw.repair.web.ajax; public class StatusAction implements ActionSupport { private Ma

Problem on json result on includeparameter configuration

2011-05-30 Thread benny
I am using hibernate to generate a json object by Struts & struts-json-plugin on 2.2.1 my object is kind of list[].set[].set[] when my add a pattern as below: list\[\d+\]\.set\[\d+\]\.set\[\d+\]\.attr, apple.*, orange.* the json result cannot generate the correct json string. Aft

Re: json result type with struts 2.1.8.1

2010-08-27 Thread chsekhar
ur message because I've got to >> > run, but why does that result have a body, instead of >> > >> > >> > -Dale >> > >> > - >> > To unsubscribe, e-mail: user-unsubscr...@struts.a

Re: json result type with struts 2.1.8.1

2010-08-27 Thread Rafael Taboada
t; > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > -- > View this message in context: > ht

Re: json result type with struts 2.1.8.1

2010-08-27 Thread chsekhar
body, instead of > > > -Dale > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context

Re: json result type with struts 2.1.8.1

2010-08-27 Thread Dale Newfield
On 8/27/10 12:39 PM, chsekhar wrote: I didn't really look at the details of your message because I've got to run, but why does that result have a body, instead of -Dale - To unsubscribe, e-mail: user-unsubscr...@strut

json result type with struts 2.1.8.1

2010-08-27 Thread chsekhar
ot found: /vendorList.action Even when I am trying to run this action directly from the browser, I get the same response. http://localhost:9081/providerportal1/vendorList.action?taxID=111billingZipCode= -- View this message in context: http://old.nabble.com/json-result-type-with-struts-2

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread GF
, Jul 13, 2009 at 9:15 AM, GF wrote: >> You're absolutely right, >> but there is a "security reason", in real-world application, the >> objects i get from business service, are usually JPA entities, and >> putting a "full JPA entity" on the json result will

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread Nils-Helge Garli Hegvik
service, are usually JPA entities, and > putting a "full JPA entity" on the json result will lead to issues in > the case there are some properties of that object that have to kept > "hidden" to the end users.. (i.e. in the case of a "User" entity, > would a

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread GF
You're absolutely right, but there is a "security reason", in real-world application, the objects i get from business service, are usually JPA entities, and putting a "full JPA entity" on the json result will lead to issues in the case there are some properties of that

RE: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread Vishnu Vyasan Nelliparmbil
Good Stuff, Thanks a Lot. Expecting more in future. -Original Message- From: GF [mailto:gan...@gmail.com] Sent: Monday, July 13, 2009 10:10 AM To: Struts Users Mailing List; fr...@meruvian.org Subject: Re: Struts2, JQuery and JSON result to create a dynamic ajax website Thank You for

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-13 Thread GF
Thank You for the nice comment. I just wrote some code snippets for the tutorials.. i didn't have enough time to build a full eclipse web project, if you have some difficulties, ask :-) On Mon, Jul 13, 2009 at 12:33 AM, Frans Thamura wrote: > Cool. Can I have the full code? Frans

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-12 Thread Wes Wannemacher
plugin/ > > I hope someone can appreciate it > A quick look at your tutorial makes me think you are underestimating the capability of the JSON plugin. It is fully capable of serializing most java objects to JSON. Rather than explicitly creating a hashmap, why not put the 'item&#x

Re: Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-12 Thread Frans Thamura
Cool. Can I have the full code? Frans --Original Message-- From: GF To: Struts Users ML ReplyTo: Struts Users Mailing List Subject: Struts2, JQuery and JSON result to create a dynamic ajax website Sent: Jul 13, 2009 02:49 Hello all, i wrote a simple guide that explains how to use together

Struts2, JQuery and JSON result to create a dynamic ajax website

2009-07-12 Thread GF
Hello all, i wrote a simple guide that explains how to use together Struts2 and JQuery to create dynamic content with Ajax and JSON. http://www.zulutown.com/blog/2009/07/12/ajax-dynamic-content-with-struts2-jquery-and-json-plugin/ I hope someone can appreciate it Thank You -

SV: Problem with JSON Result and Form Submit

2009-02-09 Thread Christer Gjerstad
with JSON Result and Form Submit I forgot to say, escapeJavaScript is available on 2.1 only. If you are using 2.0, there is a similar method (actually the original one) in commons lang StringEscapeUtils. musachy On Mon, Feb 9, 2009 at 3:33 PM, Christer Gjerstad wrote: > > Great! > >

Re: Problem with JSON Result and Form Submit

2009-02-09 Thread Musachy Barroso
have done so far! I will try that ASAP. > > Thank you very much! > > Kind regards > > Christer! > > > > -Opprinnelig melding- > Fra: Musachy Barroso [mailto:musa...@gmail.com] > Sendt: 9. februar 2009 21:25 > Til: Struts Users Mailing List > Emne:

SV: Problem with JSON Result and Form Submit

2009-02-09 Thread Christer Gjerstad
JSON Result and Form Submit There are a lots of different ways of doing that. What I would do is: 1. add a field for the first action wit getters and setters for the params 2. in the jsp do something like: var param1 = "<s:property value=''param1' escapeJavaScrip

Re: Problem with JSON Result and Form Submit

2009-02-09 Thread Musachy Barroso
t; create and return a querystring and get this from the value stack in the > page containing the Dojo script. I can then (hopefully) pass the information > retrieved into the action returning the JSON result. This I will do with > dojo.xhrPost and set the optional postData. Not solved

SV: Problem with JSON Result and Form Submit

2009-02-09 Thread Christer Gjerstad
t the incoming parameters. I then create and return a querystring and get this from the value stack in the page containing the Dojo script. I can then (hopefully) pass the information retrieved into the action returning the JSON result. This I will do with dojo.xhrPost and set the optional postData

Re: Problem with JSON Result and Form Submit

2009-02-09 Thread Musachy Barroso
that has JSP page as result containing a DOJO script calling an > action that returns a JSON result. > > It is a search form where the user provides information and the result shall > be presented on another page. But I want JSON result back so that I can > handle the search result w

SV: Problem with JSON Result and Form Submit

2009-02-09 Thread Christer Gjerstad
Almost. I have a page that has a form, and that submits (Post method) to a an action that has JSP page as result containing a DOJO script calling an action that returns a JSON result. It is a search form where the user provides information and the result shall be presented on another page. But

Re: Problem with JSON Result and Form Submit

2009-02-09 Thread Musachy Barroso
how to pass post message information from an action containing a > form to an action returning JSON result via an JSP page with a DOJO script > calling the JSON result action? Please see example below. I am loosing the > post message on the way. One solution could be to get the post message

Problem with JSON Result and Form Submit

2009-02-09 Thread Christer Gjerstad
Hello everyone, Anyone know how to pass post message information from an action containing a form to an action returning JSON result via an JSP page with a DOJO script calling the JSON result action? Please see example below. I am loosing the post message on the way. One solution could be to