Versions Compared

Key

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

...

Static content is served by an implementation of org.apache.struts2.dispatcher.StaticContentLoader. To write your own StaticContentLoader, implement StaticContentLoader and define a bean for the class:

Code Block
xml
xml
 <bean type="org.apache.struts2.dispatcher.StaticContentLoader" class="MyStaticContentLoader" name="myLoader" />
 <constant name="struts.staticContentLoader" value="myLoader" />

...