FileUpload problem for files larger than allowed

2008-01-03 Thread saint_john
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 limit. In this case Struts2 doesn't call my Action.execute() method and i cant notify user about file size problem. It looks like Struts just rejects the reques

Re: FileUpload problem for files larger than allowed

2008-01-03 Thread saint_john
dation 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 larg

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

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

Strange behaviour -- [s:property] modifies Map???

2008-01-15 Thread saint_john
Hi, I've encountered very strange behaviour of struts: adds new entry to myMap - ('testKey', ''). Why?? Details: ...in My action: private Map myMap = new HashMap(); // it's empty ...in jsp: // displays {} - it's ok because is empty // displays nothing as it should be // display