java – Need to access the simple list in Thymleaf

controller:

ArrayList al = new ArrayList();

           while ((inputLine = in.readLine()) != null) {
           System.out.println(inputLine);
           model.addAttribute("result", al.add(inputLine));

HTML:

Need all the added value in html. But it returns true. Is there any way to get all the values.