alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Tomcat example source code file (jsp2-example-taglib.tld)

This example Tomcat source code file (jsp2-example-taglib.tld) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Tomcat tags/keywords

apache, asf, asf, hello, license, license, of, see, string, string, tag, version, you, you

The Tomcat jsp2-example-taglib.tld source code

<?xml version="1.0" encoding="UTF-8" ?>
<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    version="2.0">
    <description>A tag library exercising SimpleTag handlers.
    <tlib-version>1.0
    <short-name>SimpleTagLibrary
    <uri>/SimpleTagLibrary
    <tag>
	<description>Outputs Hello, World
        <name>helloWorld
	<tag-class>jsp2.examples.simpletag.HelloWorldSimpleTag
	<body-content>empty
    </tag>
    <tag>
        <description>Repeats the body of the tag 'num' times
        <name>repeat
        <tag-class>jsp2.examples.simpletag.RepeatSimpleTag
        <body-content>scriptless
        <variable>
            <description>Current invocation count (1 to num)
            <name-given>count
        </variable>
        <attribute>
            <name>num
            <required>true
            <rtexprvalue>true
        </attribute>
    </tag>
    <tag>
	<description>Populates the page context with a BookBean
        <name>findBook
	<tag-class>jsp2.examples.simpletag.FindBookSimpleTag
	<body-content>empty
	<attribute>
	    <name>var
	    <required>true
	    <rtexprvalue>true
	</attribute>
    </tag>
    <tag>
        <description>
            Takes 3 fragments and invokes them in a random order
        </description>
        <name>shuffle
        <tag-class>jsp2.examples.simpletag.ShuffleSimpleTag
        <body-content>empty
        <attribute>
            <name>fragment1
            <required>true
	    <fragment>true
        </attribute>
        <attribute>
            <name>fragment2
            <required>true
	    <fragment>true
        </attribute>
        <attribute>
            <name>fragment3
            <required>true
	    <fragment>true
        </attribute>
    </tag>
    <tag>
        <description>Outputs a colored tile
        <name>tile
        <tag-class>jsp2.examples.simpletag.TileSimpleTag
        <body-content>empty
        <attribute>
            <name>color
            <required>true
        </attribute>
        <attribute>
            <name>label
            <required>true
        </attribute>
    </tag>
    <tag>
	<description>
	  Tag that echoes all its attributes and body content
	</description>
	<name>echoAttributes
	<tag-class>jsp2.examples.simpletag.EchoAttributesTag
	<body-content>empty
	<dynamic-attributes>true
    </tag>
    <function>
        <description>Reverses the characters in the given String
        <name>reverse
	<function-class>jsp2.examples.el.Functions
	<function-signature>java.lang.String reverse( java.lang.String )
    </function>
    <function>
        <description>Counts the number of vowels (a,e,i,o,u) in the given String
        <name>countVowels
	<function-class>jsp2.examples.el.Functions
	<function-signature>java.lang.String numVowels( java.lang.String )
    </function>
    <function>
	<description>Converts the string to all caps
        <name>caps
	<function-class>jsp2.examples.el.Functions
	<function-signature>java.lang.String caps( java.lang.String )
    </function>
</taglib>

Other Tomcat examples (source code examples)

Here is a short list of links related to this Tomcat jsp2-example-taglib.tld source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.