Web Control (servlet)

zhaozj2021-02-16  85

The entire process is as follows: 1. Create a TLD file first, used to place the definition of the control Property, such as: 1.0 1.1 My Tag Library Table tag.table JSP Table Tag border false TRUE TRUE defines a table tag, there is a property called Border

2. Then define the location of TLD in Web.xml tagliburl /web-inf/tlds/mytag.tld

3. Write the parsed code in the servlet

4. Use in JSP, such as: <% @ taglib prefix = "bluesky35" URI = "tagliburl"%> If the corresponding parsing code is written in servlet So that you can analyze what you can do, you can turn him into a textbox or checkbox or draw a Table, etc.

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

New Post(0)