Then you will like JSR-371. This is extending JAX-RS to deal nicely with routing to HTML templates.<p><a href="https:&#x2F;&#x2F;jcp.org&#x2F;en&#x2F;jsr&#x2F;detail?id=371" rel="nofollow">https:&#x2F;&#x2F;jcp.org&#x2F;en&#x2F;jsr&#x2F;detail?id=371</a>