FileUpload null file for large files?

2010-08-04 Thread Ozu Natsu
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

Re: Modify JSON Format?

2010-06-23 Thread Ozu Natsu
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

Modify JSON Format?

2010-06-22 Thread Ozu Natsu
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

Re: Validate without submit?

2010-05-03 Thread Ozu Natsu
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

Re: Validate without submit?

2010-05-03 Thread Ozu Natsu
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

Re: Validate without submit?

2010-05-01 Thread Ozu Natsu
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

Re: Validate without submit?

2010-04-30 Thread Ozu Natsu
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

Re: Validate without submit?

2010-04-30 Thread Ozu Natsu
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, > >

Re: Validate without submit?

2010-04-30 Thread Ozu Natsu
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

Re: Validate without submit?

2010-04-30 Thread Ozu Natsu
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

Re: Validate without submit?

2010-04-30 Thread Ozu Natsu
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

Re: Validate without submit?

2010-04-30 Thread Ozu Natsu
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

Re: Validate without submit?

2010-04-30 Thread Ozu Natsu
   } > > 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

Re: Validate without submit?

2010-04-30 Thread Ozu Natsu
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

Validate without submit?

2010-04-30 Thread Ozu Natsu
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

Re: JSON Plugin Question

2010-04-27 Thread Ozu Natsu
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

JSON Plugin Question

2010-04-26 Thread Ozu Natsu
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