struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burton Rhodes <burtonrho...@gmail.com>
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
well.

Thanks,
Burton

On 6/23/10, john.varghese@smartonline.com <john.varghese@smartonline.com> 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,
>
>
> JOHN VARGHESE
> Sr. Developer
>
> Smart Online
> 4505 EmperorBoulevard, Suite 320, Durham, NC 27703
> T (919) 237 4172    F (919) 237 4259[http://www.smartonline.com/]
> www.smartonline.com
>
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message