Struts2 supports static pagination throughFreemarkerTo achieve
Static Page: All webpage code is in the page, and ASP is not required. Php jsp. Or. Net and other programs to generate the webpage of the client webpage code
Benefits of static pages: ① It is easier for search engines to facilitate website promotion, and ② embedding Java code leads to page chaos and is not conducive to maintenance. Therefore, java scripts are not allowed. Labels and El expressions are only allowed. Ensure that JSP ensures a single accusation. Static pages are not supported, and Java scripts are not supported. Therefore, the page does not have business logic.
Freemarker
1. freemarker is a template engine.
2. freemarder is designed to generate HTML webpages.
3. freemarker is an applicable component in the Weibo application framework.
4. freemarker uses a template to display the page's template extension as. FTL
5. freemarker uses the $ {} syntax to act as a placeholder in the template. The template engine parses the template at runtime and replaces the placeholder content with dynamic data.
6. freemarker home page: http://freemarker.org