protecting from big requests

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rameshch45
    New Member
    • Oct 2007
    • 25

    protecting from big requests

    Hi,

    I am using Apache + Tomcat 5.

    My java/jsp/struts application takes many "file-uploads" or "content from textareas" and does some processing.

    I have several struts action classes for the same.

    I want to put one "central" gate-level check to see the size of the request - if it is more than some specified size, return a polite 500 message to the user otherwise proceed with normal processing.

    How do I configure/code such a filter?

    Hope this is not RTFM.

    Thank you.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Greetings, rameshch45!

    You might consider posting a bit of code, even though I am not an expert I'd probably be able to least do a search on it for ya,

    how's that for deal, you tel us in detail what you want in code or pseudocode, then we'll go from there.

    Dököll

    Comment

    Working...