1.

What Are The Struts2 Error Message Keys That Can Come During File Uploading Process?

Answer»

The fileUplaod interceptor uses several default error MESSAGE keys −

struts.messages.error.uploading − A GENERAL error that occurs when the file could not be uploaded.

struts.messages.error.file.too.large − Occurs when the uploaded file is too large as SPECIFIED by maximumSize.

struts.messages.error.CONTENT.type.not.allowed − Occurs when the uploaded file does not match the EXPECTED content types specified.

The fileUplaod interceptor uses several default error message keys −

struts.messages.error.uploading − A general error that occurs when the file could not be uploaded.

struts.messages.error.file.too.large − Occurs when the uploaded file is too large as specified by maximumSize.

struts.messages.error.content.type.not.allowed − Occurs when the uploaded file does not match the expected content types specified.



Discussion

No Comment Found