...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<xwork> <include name="action-default.xml"/> <package name="default" extends="action-default"> <result-types> <result-type name="image" class="tutorial.ImageResult" /> </result-types> <action name="image" class="tutorial.ImageAction"> <result name="success" type="image"/> </action> </package> </xwork> |
...
Configuring Global Results
It's not unusual for mappings to share a need for the same result. For example, if your application is secured, then many mappings might need to return "login" if the security check fails. Rather than define a common result in every action mapping, the framework lets you define global results.
...