钟原froast wrote:
<interceptor-ref name="defaultStack">
                  <param name="fileUpload.allowedTypes
">image/png,image/gif,image/jpeg</param>
                 <param name="fileUpload.maximumSize">102400</param>
                 <param name="validation.excludeMethods">*</param>
                 <param name="validation.includeMethods
">saveCertificate</param>
</interceptor-ref>

the upload file is not nessary, so i want it to be validated when I upload a
file, and skip validation when I did not upload a file, how should I do?

How are you validating when the file *is* uploaded? Are you just talking about the constraints configured in the interceptor, or something you're doing using the validation framework?

It might help to describe what's happening and what you want to happen instead, together with whatever additional configuration you're using and what you've already tried to achieve your goal.

L.


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

Reply via email to