Configuration
Action Mapping
Please see http://cwiki.apache.org/WW/convention-plugin.html for more details - we've switched to Conventions plugin.
...
- Explicit mapping in your action class with annotations.
implicit mapping in the filesystem, where a
.ftl
or.jsp
file insrc/main/webapp
is parsed and delivered for content.Info title Implicit 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 athttp://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
- Ajax: http://struts.apache.org/2.x/docs/ajax.html
- Annotations: http://struts.apache.org/2.x/docs/annotations.html
- Conventions: http://struts.apache.org/2.x/docs/convention-plugin.html
- Freemarker tags: http://struts.apache.org/2.x/docs/freemarker-tags.html
- Interceptors: http://struts.apache.org/2.x/docs/interceptors.html
- Tags: http://struts.apache.org/2.x/docs/tag-reference.html
- Themes and Templates: http://struts.apache.org/2.x/docs/themes-and-templates.html
- Type conversion: http://struts.apache.org/2.x/docs/type-conversion.html
- Validation: http://struts.apache.org/2.x/docs/validation.html