Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

in struts.xml to start using it.

Request validation

The struts.multipart.validationRegex is used to define a RegEx to be used to validate if the incoming request is a multipart request. The request must use the POST method and match the RegEx, by default the RegEx is defined as follow:

Code Block
^multipart\\/form-data(; boundary=[a-zA-Z0-9]{1,70})?

Please read RFC1341 the Multipart section for more details, existing Struts Multipart parsers support only multipart/form-data content type.