David
From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: File upload Validator Date: Fri, 4 Apr 2003 14:49:39 -0500 (EST)
Hi all!
I have development/design question. Please do not read it as a atack of any kind. I jsut try to understand what I am missing. Beacuse obviously I am missing something.
First an only question: why org.apache.struts.upload.FormFile is not on the list of types suported by org.apache.struts.validator.DynaActionForm?
I believe that it will be nice to have possibility of building dynamic form with file upload. Specially that it works already!
The only part which is not implemented is the validator of the file size.
This will be nice to have such validator. Of course there is small draw back - we cannot validate size of uploaded file on the JavaScript side (but who said that we have to).
I believe that this will add the flexibility to the existing "official" way (based on struts-upload examlpe) and simplify the page development.
I already developed such validator.
If somebody think that it can be a good idea to add it after testing to org.apache.struts.validator.FieldChecks or make any use of this - I will be happy to send the solution to whoever wish to take a look.
It works for me for any form which implements org.apache.commons.beanutils.DynaBean and any form which has geters and seters set the standard way.
Best regards
Jerzy Puchala
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]