Nowadays, dedicated front end technology like JavaScript, TypeScript, HTML, CSS are used for building webapps, so it would be better if you try to learn these and implement your webapps front end (interactive web client) using any of the frameworks on these technologies such as react or angular
Now the questions comes down to, whether a single page application or a monolithic web client is suitable for your case.
If your use case demands a single page application, going by client side rendering on a dedicated web server like apache or nginx is your best choice.
If your use case demands kind of monolithic web client from front end like the old days, you can go with server side rendering and use angular or react with spring thymeleaf or JSF for implementing your requirements
