TagLib application in JSP (3-2)

Source: Internet
Author: User

Custom tag location

Attribute.

Indicates the attribute name contained in the tag.

True indicates that this attribute is required.

Or

False indicates that this attribute is not required.

The implicit value is false.

True indicates that the value of this attribute can be output using the jsp program segment.

Or

False indicates that the value of this attribute cannot be output using the jsp program segment.

The implicit value is false.

------------------------------------------------------------

Taking insert tag as an example, a tag named insert is defined. Its processing file is com. sun. estore. taglib. InsertTag.

The type of the property value is JSP, and three attributes are defined. Reference in the jsp page.

Now you should be able to understand the general meaning of this tld file. We will write our own tld file in this format.

There should be no problem. If you still don't understand it, reading XML books will be helpful.

Using tld files in jsp files is a command

I used Comrade Fei Dao's explanation in jsp syntax.

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.