SHOW:
|
|
- or go back to the newest paste.
| 1 | class Action extends ActionSupport | |
| 2 | {
| |
| 3 | public String execute() | |
| 4 | throws Exception {
| |
| 5 | ||
| 6 | Result result = service.someMethod(); | |
| 7 | if(result != null) {
| |
| 8 | List<String> errors = ResultUtil.translate(result); | |
| 9 | if(errors != null && errors.size() > 0) | |
| 10 | - | iferrors != null && errors () > 0) |
| 10 | + | |
| 11 | ||
| 12 | if(result.isSuccessful()) | |
| 13 | return SUCCESS; | |
| 14 | } | |
| 15 | ||
| 16 | return ERROR; | |
| 17 | } | |
| 18 | } |