Sitemesh - Reward!

xiaoxiao2021-03-06  28

View template, I have been using Tiles as a Struts plugin. Today, I practice Sitemesh, and my design is amazed. I remember that the last move is so excited or exposed to Spring. Tiles seems to be some from "beauty", huh, huh. Www.jboss.org is using it.

I don't know who practiced in the project, I really want to exchange, see how he cope with some complexity.

Introduction: Sitemesh, from OpenSymphony, and the famous Webwork, OSCACEH, OSWORKFLOW, its thoughts are Decorator mode, using servlet2.3's flitler, intercept request and response, combine the page components Head, Content, Banner, etc. into a complete view. And the IOC in the current fire, that is, the page does not need to know how to be decorated, and the container is responsible.

Here are a few common labels:

: Read the title of the decorative page and give the default title.

: Read the content in of the decorative page;

: Read the content in of the decorative page;

chagezw@hotmail.com

Decorated the menu.jsp file with the decorator specified by Panel and insert the result into this location and set a page parameter.

This attribute value can be made in the packaging page to access the "MYEMAIL"> tags to the .tiles. This tag can be made.

Important work is to make the decorator page itself (that is, a page containing structure and rules), then describes them into Decorators.xml.

转载请注明原文地址:https://www.9cbs.com/read-69833.html

New Post(0)