You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

Please ensure that you have included the required dependencies for this optional feature. (See core/pom.xml)

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