Versions Compared

Key

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

Configuration

Action Mapping

Please see http://cwiki.apache.org/WW/convention-plugin.html for more details - we've switched to Conventions plugin.

...

  1. Explicit mapping in your action class with annotations.
  2. implicit mapping in the filesystem, where a .ftl or .jsp file in src/main/webapp is parsed and delivered for content.

    Info
    titleImplicit mapping example

    If you create a file, test.ftl in the src/main/webapp/blougat directory, then you should be able to see the contents of that file at http://localhost:8080/blougat/test

Miscellaneous Issues / Notes

Spring uses JDK dynamic proxies by default, which means that any autowired proxied class (i.e., the *Service classes, etc.) gets injected with the interface type, not the concrete class. For example, if UniqueEmailValidator wants a PersonService to talk to, it will only get a Service from Spring unless explicitly wired. In order to overcome this, make sure

...

is specified in the spring configuration.

External links to Struts 2 documentation