###### tags: `Template Notes` `Java`
# WOS - Part 2 Starter Template:
---
- At this point you have tested the server and it is up and running and has loaded the 1st page
- Now we need to keep editing the files so we can display data
## <>Repository:
```
List<className> findAll();
```
## <>Service:
```
public List<className> getAll(){
return <>Repository.fiindAll();
}
```
## <>Controller:
```
@GetMapping("/")
public String index(Model model) {
model.addAttribute("all<className",<>Service.getAll());
return "index.jsp";
}
```
## index.jsp
- Here depending on how you wnat to display the data you will use this
```
<c:forEach items="${ all<className> }" var = "<className>">
<p>${ <className>.<columnName> }
</c:forEach>
```
## Test
- If there is data in the data base you should now be displaying it