Esempio n. 1
0
  public String list() throws Exception {
    message = Integer.toString(hashCode());
    String name = null;
    if (example != null) {
      name = example.getName();
    }
    Result examples = exampleService.findExamples(name, page, pageSize);
    toVm(examples);

    return SUCCESS;
  }
Esempio n. 2
0
 public String doAdd() throws Exception {
   Result result = exampleService.createExample(example);
   toVm(result);
   return SUCCESS;
 }