JSPs are similar to PHP in this respect, that everything that doesn't really matter is printed literally. Thus, most of your file should be copied to the JSP as it is. I see two types of control statements: @include and @yield.
@include: JSP : <% @include... > < jsp: include > . , , include. - , HTTP-. . , . , StackOverflow, . : https://www.tutorialspoint.com/jsp/include_directive.htm : JSP
@yield: , , , , , . , , , . JSP ( ), bean, . : https://www.javatpoint.com/jsp-useBean-action.
, , (https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller) JSP. , Spring -MVC Java , , Model ModelMap. JSP ${nameofmodelattribute} ${nameofmodelattribute.property}. : https://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html#mvc-controller
Java-, , - . , , JSP.
, , , Java- MVC , , , , , , .