See this page for more examples and advanced configuration

Error formatting macro: snippet: java.lang.NullPointerException

Parameters

Error formatting macro: snippet: java.lang.NullPointerException

Extending the Interceptor

Error formatting macro: snippet: java.lang.NullPointerException

Examples

Example action mapping:

Error formatting macro: snippet: java.lang.NullPointerException

Notice the interceptor configuration in the preceding example.

Example JSP form tags:

Error formatting macro: snippet: java.lang.NullPointerException
Error formatting macro: snippet: java.lang.NullPointerException

Example Action class:

Error formatting macro: snippet: java.lang.NullPointerException

Setting parameters example:

<interceptor-ref name="fileUpload">
  <param name="allowedTypes">
     image/png,image/gif,image/jpeg
  </param>
</interceptor-ref>

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.