Child pages
  • File Upload Interceptor
Skip to end of metadata
Go to start of metadata

See this page for more examples and advanced configuration

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Parameters

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Extending the Interceptor

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Examples

Example action mapping:

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Notice the interceptor configuration in the preceding example.

Example JSP form tags:

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20
Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Example Action class:

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Setting parameters example:

This part is optional and would be done in place of the <interceptor-ref name="fileUpload"/> line in the action mapping example above.

  • No labels

2 Comments

  1. We should explicitly list the dependencies for those not using Maven.

    They are
    commons-fileupload-1.1.1.jar
    commons-io-1.1.jar

    These dependencies should also be in the /lib directory

    1. For completeness, these are only dependencies if you're using the default Jakarta multipart wrapper. If you're using a different multipart mechanism the dependencies will be different.