File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

maxFileSize validation for RequestProcessor

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2591

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

- Manish
I agree. Here's the link:
subject: maxFileSize validation for RequestProcessor
jQuery in Action, 3rd edition