-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mano,
Mano Chinthaka Dasanayaka wrote: > Try Using > <form-bean name="uploadFile" > type="org.apache.struts.validator.DynaValidatorActionForm"> > <form-property name="title" type="java.lang.String"/> > <form-property name="revdate" type="java.lang.String"/> > <form-property name="revinfo" type="java.lang.String"/> > <form-property name="documentfile" > type="org.apache.struts.upload.FormFile"/> > </form-bean> > > "org.apache.struts.validator.DynaValidatorActionForm" Are you sure this is the problem? DynaValidatorForm is a valid form-bean type, and it's the one I use, in fact. The error message indicates that the type name for "documentFile" is unusable: > Error creating form bean of class > org.apache.struts.validator.DynaValidatorForm > java.lang.NullPointerException: The type for property documentfile is > invalid Is this because DynaValidatorForm does not support org.apache.struts.upload.FormFile properties? The documentation for this form suggests that the only difference is that DynaValidatorActionForm uses a separate XML file to define field validation rules. I'm not sure how that's different than using commons-validator, though... I think the problem is more likely that org.apache.struts.upload.FormFile is not a class -- it's an interface. Struts can't create a new object because Java can't create a new instance of an interface. The HOWTO Chris mentions instructs you to add this to your <controller> configuration: > multipartClass - The fully qualified Java class name of the multipart > request handler class to be used with this module. Defaults is > org.apache.struts.upload.CommonsMultipartRequestHandler. Have you configured your <controller> element in this way? It appears that there is a default, but that could be part of the problem. I'm interested in the fact that a switch to DynaValidatorActionForm fixed your problem; are you sure that you didn't change anything else? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFbFSD9CaO5/Lv0PARAmAIAJ4knbM0fRFLB5EgndwBO6+xMBAL6wCgwrlC CEKS/pLVh2jjW5I6AerLCNA= =uJGh -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]