struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burton Rhodes <>
Subject Re: Validating mutltiple uploads in a single action
Date Wed, 23 Jun 2010 22:57:04 GMT
I think it would best to validate the type in a 'validate' function
and make your action implement Validateable.  It will give you greater
control on the action/field errors that you present to the end user as


On 6/23/10, <> wrote:
> Hi,
>          I have two file fields in my Action, one is an Image and one is a
> document. Is there a way I can use the allowedTypes filter to specify  the
> valid content types specific to each type of field in the same action
> Thanks in advance.
> Regards,
> Sr. Developer
> Smart Online
> 4505 EmperorBoulevard, Suite 320, Durham, NC 27703
> T (919) 237 4172    F (919) 237 4259[]
> Note: The information contained in this email is privileged and confidential
> information intended for the use of the addressee. If the reader of this
> email is not the intended recipient, or the employee or agent thereof, you
> are hereby notified that any dissemination, distribution, or copying of this
> communication is strictly prohibited. If you received this email in error,
> please immediately notify the sender listed above and destroy this message

Sent from my mobile device

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message