• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

maxFileSize validation for RequestProcessor

 
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic