Warning | ||
---|---|---|
| ||
Since 2.1 this plugin has been deprecated in favor of the Convention Plugin. See this page for details on how to port your application to the Convention plugin. |
Note |
---|
The Codebehind Plugin is experimental. Feedback is appreciated! |
Info |
---|
Since Struts 2.1.0, the Zero Configuration code has been moved to this plugin |
The Codebehind Plugin
Excerpt |
---|
reduces mundane configuration by adding "Page Controller" conventions |
...
For example, if the request is for http://www.company.com/myapp/member/login.action
, the plugin will look for the following pages, in this order:
...
These two patterns are searched for each of the three default page extensions: jsp, vm, and ftl. For example, if the request is for http://www.company.com/myapp/member/login.action
, so that the action name is login
and the namespace is member
, and the Action class returned a code of success
, the plugin will look for the following pages, in this order:
...