Meaningless Drivel is fun!*
The moose likes Struts and the fly likes maxFileSize validation for RequestProcessor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "maxFileSize validation for RequestProcessor" Watch "maxFileSize validation for RequestProcessor" New topic
Author

maxFileSize validation for RequestProcessor

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

I have a custom request processor and the maxFileSize attribute for the same is set to 100K as follows in struts-config.xml



So whenever I am trying to upload a file bigger than 100 KB, it doesn't allow me. However, I'd like to display a proper error mesage to the user in this case, how can I do this? The action handling thsi upload does not even receive the call when size > 100 KB. where and how do I put this validation with appropriate error message

TIA,
- Manish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: maxFileSize validation for RequestProcessor
 
Similar Threads
loose the user-inputs when maxLengthExceeded by a file upload
struts-config controller element
Exception: related to struts -need help
Upload file size limit
ControllerConfig - MaxFileSize