Static struts2 page

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.