This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maxFileSize validation for RequestProcessor

 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic