I won't be too much help, as I've never had this problem.  But sometimes a 
second set of eyes helps you look at your stuff differently.
To that point: I wonder what the invalid value is.  
Put a breakpoint in the ValidationInterceptor, ParamsInterceptor, and 
FileUploadInterceptor, to see what invalid value it's receiving.

I think the FileUploadInterceptor by default will only give you 2 errors:
    The file is to large to be uploaded {0} {1} {2} {3}
    Error uploading: {0}


-----Original Message-----
From: Earle Flynn [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2008 2:59 PM
To: Struts Users Mailing List
Subject: Re: How to validation/workflow with fileUpload?

Hi David,
If I remove the value property from the s:file tag, then when the action 
returns from a validation error to the input-result the page will not fully 
render, stopping just before the s:file tag, presumably there is an exception 
in the s:file tag. Strange, I know, luckily I have a solution for this issue by 
declaring the value property of the s:file.
 
The larger issue though is the source of the 'Invalid field value for field 
"upload".' field error coming from the FileUploadInterceptor. I know this 
because if I don't browse for a file and submit the form then everything works 
as expected.
 
I have tried a number of solutions; adding clean up filter before struts, 
upgrading dependencies to the latest and incrementally trying all versions, and 
etc. Any further suggestions?
 
Thanks,
Earle


      
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to