How to override the default error message that can come during file uploading process?



How to override the default error message that can come during file uploading process?..

Answer / Banafsha Siddiqui

To override the default error messages during file uploading, you can define custom Field Error Messages for each field in your Form Bean using annotations like @FileSizeFieldValidator and @MinSizeFieldValidator. You may also use a custom Validator class to create and return your own error message.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Struts Interview Questions

How the exceptions are handled in struts?

1 Answers  


What is the actionform?

1 Answers  


where you will implement the tiles in struts?

2 Answers   Wipro,


What is the purpose of @createifnull annotation annotation?

1 Answers  


What is struts framework?

1 Answers  


What is Custom Type Converter in Struts2?

1 Answers  


What is dispatchaction?

1 Answers  


What is the purpose of @key annotation annotation?

1 Answers  


What are the custom tags?

1 Answers  


What is interceptor in Struts2?

1 Answers  


What is the default location of result pages and how can we change it?

1 Answers  


What is struts 2 framework in java?

1 Answers  


Categories