Re: FileUpload problem for files larger than allowed

2008-01-03 Thread Dave Newton
--- saint_john <[EMAIL PROTECTED]> wrote: > yes, i have to do something like prepare(). > But struts behavior is very doubtful in case of validation error - it's I > DECIDE where execution control should flow (i mean INPUT result, SUCCESS or > ERROR or whatever i want), not struts. Then don't use

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread saint_john
yes, i have to do something like prepare(). But struts behavior is very doubtful in case of validation error - it's I DECIDE where execution control should flow (i mean INPUT result, SUCCESS or ERROR or whatever i want), not struts. newton.dave wrote: > > Oh; I'm not sure why you'd do that in

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread Dave Newton
Oh; I'm not sure why you'd do that in addActionError(), though. That's what prepare() etc. are for, isn't it? d. --- saint_john <[EMAIL PROTECTED]> wrote: > > Thanks for help. > > "View data" - some info from DB displayed in jsp after action execution > > > newton.dave wrote: > > > > --- sa

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread saint_john
Thanks for help. "View data" - some info from DB displayed in jsp after action execution newton.dave wrote: > > --- saint_john <[EMAIL PROTECTED]> wrote: >> Yes, my action's addActionError() was called, but not the execute() >> method. >> It is very sad what I should fill view data inside addA

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread Dave Newton
--- saint_john <[EMAIL PROTECTED]> wrote: > Yes, my action's addActionError() was called, but not the execute() method. > It is very sad what I should fill view data inside addActionError() instead > of execute(). execute() isn't called if there's a validation error. I don't know what you're refe

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread saint_john
Yes, my action's addActionError() was called, but not the execute() method. It is very sad what I should fill view data inside addActionError() instead of execute(). newton.dave wrote: > > http://struts.apache.org/2.x/docs/file-upload-interceptor.html > > It's a validation error, isn't it? >

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread Dave Newton
http://struts.apache.org/2.x/docs/file-upload-interceptor.html It's a validation error, isn't it? d. --- saint_john <[EMAIL PROTECTED]> wrote: > > Hi all, > > I've got the following problem: > > I have a form to upload files and everything works fine until i upload a > file larger than upper