If you want to replace parts of your website, ajax is an easy way to do it.
The website.html where you want to replace the content based on the selected value:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
...