Hi,
I am using Struts 2.1.8.1 and have an action that allows for a large
file (20+MB) to be uploaded. I have set the Struts
struts.multipart.maxSize attribute to allow a file upload large
enough, and have also set the interceptor max file upload size as
follows in my action:
2500
The ac
value,. } structure. So you will end up having the
array of array in your JSON as well.
2. Post process the JSON data on your ajax callback function before
feeding it to the table. (You also have the order available on
client from
the table declaration, so it should be easy. )
Regards,
Rahul Mohan
From
Hi,
I am using JSON plugin to return data to JQuery DataTable, but format
is not compatible with Datatable plugin. I have a collection with a
getter function on my struts2 action that is annotated with @JSON
annotation. The action returns an array of objects, such as:
{"aaData":[",{"age":2,"bree
tly.
I'm quite confused with this and would appreciate any advice or help
anyone has to offer.
On Mon, May 3, 2010 at 12:08 PM, Ozu Natsu wrote:
> The params interceptor is in the stack, I had included the basicStack
> -- but also expressly included it as well to see if there was
like I would expect:
object.attribute=value&object.attribute2=value
Where is the best way to verify that the action is getting and parsing
the parameters in the action?
On Sat, May 1, 2010 at 8:45 PM, Dale Newfield wrote:
> On 5/1/10 11:58 AM, Ozu Natsu wrote:
>>
>> I
ing
them with the validation rules because of this fieldError key
business?
Struts Experts, what happing here?? I am I describing the problem well enough?
On Fri, Apr 30, 2010 at 6:34 PM, Ozu Natsu wrote:
> Arg!
>
> Something else is going on. Maybe related to the parseError? I am
> as
as if the
errorsObect.fieldErrors has ALL my validations in it, regardless of
whether the field had a value or not.
On Fri, Apr 30, 2010 at 6:20 PM, Ozu Natsu wrote:
> The problem looks as if it is in the DOM, I'm wondering if this isn't
> jquery's fault?
>
> All of the field n
The problem looks as if it is in the DOM, I'm wondering if this isn't
jquery's fault?
All of the field names in the form.elements are somehow mangled.
"artNumber" instead of "partNumber"
On Fri, Apr 30, 2010 at 6:14 PM, Ozu Natsu wrote:
> Dale,
>
>
rorsObject);
}
}
On Fri, Apr 30, 2010 at 5:55 PM, Dale Newfield wrote:
> On 4/30/10 6:50 PM, Ozu Natsu wrote:
>>
>> Anyone have any ideas?
>
> Debugging from the client side: Firebug in Firefox.
> Debugging from the server side: log me
some error. I'm not sure how to figure out
what error it is.
Anyone have any ideas?
On Fri, Apr 30, 2010 at 5:36 PM, Cimballi wrote:
> I noticed that I am not using the json interceptor, only the result :
>
>
> What are you using ?
>
> Cimballi
>
>
> On Fri, Apr
Query ?
>
> Cimballi
>
>
> On Fri, Apr 30, 2010 at 5:01 PM, Ozu Natsu wrote:
>> 1 step closer. I had missed the reference to the interceptor
>> in my struts
>> action.
>>
>> I am now getting a result back from the validator, but it doesn't s
tter, I think you could even specify the name of
> the method to call in your action.
> Another option is to create 2 actiosns in your configuration file
> calling the same java action, one for the real action, and the other
> for the validation.
>
> Cimballi
>
>
> On Fri, Ap
}
>
> In my case it's a single String but I suppose you can return more
> complex objects.
>
> Cimballi
>
>
> On Fri, Apr 30, 2010 at 2:51 PM, Ozu Natsu wrote:
>> I am having some problems with the call, the ajax "get" returns no
>> respon
rse it can be done with JQuery and I recommend using JSON too.
> You call the action via Ajax and you get the JSON result and display it.
>
> Cimballi
>
>
> On Fri, Apr 30, 2010 at 1:36 PM, Ozu Natsu wrote:
>> Is it possible to fire the struts 2 validation without performing a
Is it possible to fire the struts 2 validation without performing a
submit? I realize that this could be done via ajax, but I am already
committed to use another JS framework (not dojo, dwr or prototype) .
I'd like to fire the validation and get the form validation messages
back if any to be displ
response content type is not understood by browser. This can happen
> if your response has formatting errors. For JSON response, the best
> possible way in jQuery would be http://api.jquery.com/jQuery.getJSON/
>
> - Rahul
>
>
>
> From:
> Ozu Natsu
> To:
> user@struts.a
Hello,
I am trying to use the JSON plug-in for the first time. I have a form
that uses jquery to submit to a struts2 action, the action is being
invoked properly and I am trying to send result back to call back
function, but when result returns the browser prompts me to save or
open the result fil
17 matches
Mail list logo