Templates in a Spring MVC web application

前端 未结 4 2437
北海茫月
北海茫月 2021-02-19 21:21

I have a lot of common areas in my web application design, for example footer, header sidebar, blocks...etc and going through all of the application JSP files to change somethin

4条回答
  •  一生所求
    2021-02-19 21:49

    As for templating you have the following options:

    1. Custom JSP tags. These tags may exist as Java classes or JSP snippets and provide a basic facility to encapsulate and reuse parts of JSP pages (headers, footers, etc.). See more in this manual

    2. Template engines like Tiles or decorators like Sitemesh. They are quite powerfull in building complex page layouts.

    If you're looking for custom UI themes support please take a look at custom themes support in Spring MVC.

提交回复
热议问题