Primary steps using Tiles in Struts [non-reprint]

xiaoxiao2021-03-06  180

1. Added in Web.xml

/web-inf/struts-nested.tld /web-inf/struts-nested.tld

2. Added in struts-config.xml files

3. New TILES-Defs.xml

. . . .

. . . . .

4. Establish a template file

To use the template

XXX If it is unified (templated), XXX is consistent with the NAME of the Tiles-Defs.xml file.

GGG If it is personalized (each page) corresponds to the PUT of this template file in the future

5. Establish a JSP page using a template file

The GGG corresponds to the Name in INSERT in the template file. You can uniquely determine the position of the PUT in the page.

* Note:

In Tiles-Defs.xml, you can directly define the included files such as head or bottom information such as head or bottom information.

Use the PUT tag.

Tiles: PUT has two types (types)

Page in one page

String string

. . . .

If there is an incorrect place, please refer to

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

New Post(0)