Exemplo n.º 1
0
 @DoValidation(
     v = {ValidateDownload.class},
     to = "/hello/hello.html")
 @RequestMapping(value = "/download")
 public DoxModelAndView downloadFile(HelloForm form) throws Exception {
   Downloads.downloadFile(Paths.get("//LS-XHLE38/share/var/", form.getFileName()));
   return download(form);
 }
Exemplo n.º 2
0
 @RequestMapping(value = "/output-doxls")
 public void outputReportDoxls(HelloForm form) throws Exception {
   Downloads.downloadXls(
       "templates/report/xls/nested_command_template.xls",
       helloService.createXlsValuesSetter(form));
 }