s:button and s:link can have both 'action' and 'view' attributes.
When both are given, it will try to excute 'action' first, then 'view' next.
However, if action returns something, it will be forwarded to the 'something'
If, action returns nothing, it will proceed to 'view'.
rule
- 1. execute action
- 1.1 if action returns -> redirect to the page
- 1.2 if action doesn't return -> try to call 'view'
No comments:
Post a Comment