> 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
t;b"},"2":
> {"property":"c"}},"anString":"hello","anotherList":{"0":
> {"prop1":"a","prop2":"b"},"1":{"prop1":"c","prop2":"d&quo
)})publicStringloadSomeSamples(){samples =newArrayList();//Put
some object in samples.returnSUCCESS;}}
This will result to:
{"samples":{"0":{"property":"a"},"1":{"property":"b"},"2":{"property":"c"}
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
-
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!
>
>
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:
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
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
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
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
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
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
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
39 matches
Mail list logo