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

Jetty example source code file (c.tld)

This example Jetty source code file (c.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 - Jetty tags/keywords

boolean, if, iteration, iteration, name, name, object, scope, string, the, the, this, url, url

The Jetty c.tld source code

<?xml version="1.0" encoding="UTF-8" ?>

<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>JSTL 1.1 core library
  <display-name>JSTL core
  <tlib-version>1.1
  <short-name>c
  <uri>http://java.sun.com/jsp/jstl/core

  <validator>
    <description>
        Provides core validation features for JSTL tags.
    </description>
    <validator-class>
        org.apache.taglibs.standard.tlv.JstlCoreTLV
    </validator-class>
  </validator>

  <tag>
    <description>
        Catches any Throwable that occurs in its body and optionally
        exposes it.
    </description>
    <name>catch
    <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag
    <body-content>JSP
    <attribute>
        <description>
Name of the exported scoped variable for the
exception thrown from a nested action. The type of the
scoped variable is the type of the exception thrown.
        </description>
        <name>var
        <required>false
        <rtexprvalue>false
    </attribute>
  </tag>

  <tag>
    <description>
	Simple conditional tag that establishes a context for
	mutually exclusive conditional operations, marked by
	<when> and <otherwise>
    </description>
    <name>choose
    <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag
    <body-content>JSP
  </tag>

  <tag>
    <description>
	Simple conditional tag, which evalutes its body if the
	supplied condition is true and optionally exposes a Boolean
	scripting variable representing the evaluation of this condition
    </description>
    <name>if
    <tag-class>org.apache.taglibs.standard.tag.rt.core.IfTag
    <body-content>JSP
    <attribute>
        <description>
The test condition that determines whether or
not the body content should be processed.
        </description>
        <name>test
        <required>true
        <rtexprvalue>true
	<type>boolean
    </attribute>
    <attribute>
        <description>
Name of the exported scoped variable for the
resulting value of the test condition. The type
of the scoped variable is Boolean.        
        </description>
        <name>var
        <required>false
        <rtexprvalue>false
    </attribute>
    <attribute>
        <description>
Scope for var.
        </description>
        <name>scope
        <required>false
        <rtexprvalue>false
    </attribute>
  </tag>

  <tag>
    <description>
        Retrieves an absolute or relative URL and exposes its contents
        to either the page, a String in 'var', or a Reader in 'varReader'.
    </description>
    <name>import
    <tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag
    <tei-class>org.apache.taglibs.standard.tei.ImportTEI
    <body-content>JSP
    <attribute>
        <description>
The URL of the resource to import.
        </description>
        <name>url
        <required>true
        <rtexprvalue>true
    </attribute>
    <attribute>
        <description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is String.
        </description>
        <name>var
        <required>false
        <rtexprvalue>false
    </attribute>
    <attribute>
        <description>
Scope for var.
        </description>
        <name>scope
        <required>false
        <rtexprvalue>false
    </attribute>
    <attribute>
        <description>
Name of the exported scoped variable for the
resource's content. The type of the scoped
variable is Reader.
        </description>
        <name>varReader
        <required>false
        <rtexprvalue>false
    </attribute>
    <attribute>
        <description>
Name of the context when accessing a relative
URL resource that belongs to a foreign
context.
        </description>
        <name>context
        <required>false
        <rtexprvalue>true
    </attribute>
    <attribute>
        <description>
Character encoding of the content at the input
resource.
        </description>
        <name>charEncoding
        <required>false
        <rtexprvalue>true
    </attribute>
  </tag>

  <tag>
    <description>
	The basic iteration tag, accepting many different
        collection types and supporting subsetting and other
        functionality
    </description>
    <name>forEach
    <tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag
    <tei-class>org.apache.taglibs.standard.tei.ForEachTEI
    <body-content>JSP
    <attribute>
        <description>
Collection of items to iterate over.
        </description>
	<name>items
	<required>false
	<rtexprvalue>true
	<type>java.lang.Object
    </attribute>
    <attribute>
        <description>
If items specified:
Iteration begins at the item located at the
specified index. First item of the collection has
index 0.
If items not specified:
Iteration begins with index set at the value
specified.
        </description>
	<name>begin
	<required>false
	<rtexprvalue>true
	<type>int
    </attribute>
    <attribute>
        <description>
If items specified:
Iteration ends at the item located at the
specified index (inclusive).
If items not specified:
Iteration ends when index reaches the value
specified.
        </description>
	<name>end
	<required>false
	<rtexprvalue>true
	<type>int
    </attribute>
    <attribute>
        <description>
Iteration will only process every step items of
the collection, starting with the first one.
        </description>
	<name>step
	<required>false
	<rtexprvalue>true
	<type>int
    </attribute>
    <attribute>
        <description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility. Its type depends
on the object of the underlying collection.
        </description>
	<name>var
	<required>false
	<rtexprvalue>false
    </attribute>
    <attribute>
        <description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of type
javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested
visibility.
        </description>
	<name>varStatus
	<required>false
	<rtexprvalue>false
    </attribute>
  </tag>

  <tag>
    <description>
	Iterates over tokens, separated by the supplied delimeters
    </description>
    <name>forTokens
    <tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag
    <body-content>JSP
    <attribute>
        <description>
String of tokens to iterate over.
        </description>
	<name>items
	<required>true
	<rtexprvalue>true
	<type>java.lang.String
    </attribute>
    <attribute>
        <description>
The set of delimiters (the characters that
separate the tokens in the string).
        </description>
	<name>delims
	<required>true
	<rtexprvalue>true
	<type>java.lang.String
    </attribute>
    <attribute>
        <description>
Iteration begins at the token located at the
specified index. First token has index 0.
        </description>
	<name>begin
	<required>false
	<rtexprvalue>true
	<type>int
    </attribute>
    <attribute>
        <description>
Iteration ends at the token located at the
specified index (inclusive).
        </description>
	<name>end
	<required>false
	<rtexprvalue>true
	<type>int
    </attribute>
    <attribute>
        <description>
Iteration will only process every step tokens
of the string, starting with the first one.
        </description>
	<name>step
	<required>false
	<rtexprvalue>true
	<type>int
    </attribute>
    <attribute>
        <description>
Name of the exported scoped variable for the
current item of the iteration. This scoped
variable has nested visibility.
        </description>
	<name>var
	<required>false
	<rtexprvalue>false
    </attribute>
    <attribute>
        <description>
Name of the exported scoped variable for the
status of the iteration. Object exported is of
type
javax.servlet.jsp.jstl.core.LoopTag
Status. This scoped variable has nested
visibility.
        </description>
	<name>varStatus
	<required>false
	<rtexprvalue>false
    </attribute>
  </tag>

  <tag>
    <description>
        Like <%= ... >, but for expressions.
    </description> 
    <name>out
    <tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag
    <body-content>JSP
    <attribute>
        <description>
Expression to be evaluated.
        </description>
        <name>value
        <required>true
        <rtexprvalue>true
    </attribute>
    <attribute>
        <description>
Default value if the resulting value is null.
        </description>
        <name>default
        <required>false
        <rtexprvalue>true
    </attribute>
    <attribute>
        <description>
Determines whether characters <,>,&,'," in the
resulting string should be converted to their
corresponding character entity codes. Default value is
true.
        </description>
        <name>escapeXml
        <required>false
        <rtexprvalue>true
    </attribute>
  </tag>


  <tag>
    <description>
        Subtag of <choose> that follows <when> tags
        and runs only if all of the prior conditions evaluated to
        'false'
    </description>
    <name>otherwise
    <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag
    <body-content>JSP
  </tag>

  <tag>
    <description>
        Adds a parameter to a containing 'import' tag's URL.
    </description>
    <name>param
    <tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag
    <body-content>JSP
    <attribute>
        <description>
Name of the query string parameter.
        </description>
        <name>name
        <required>true
        <rtexprvalue>true
    </attribute>
    <attribute>
        <description>
Value of the parameter.
        </description>
        <name>value
        <required>false
        <rtexprvalue>true
    </attribute>
  </tag>

  <tag>
    <description>
        Redirects to a new URL.
    </description>
    <name>redirect
    <tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag
    <body-content>JSP
    <attribute>
        <description>
The URL of the resource to redirect to.
        </description>
        <name>url
        <required>false
        <rtexprvalue>true
    </attribute>
    <attribute>
        <description>
Name of the context when redirecting to a relative URL
resource that belongs to a foreign context.
        </description>
        <name>context
        <required>false
        <rtexprvalue>true
    </attribute>
  </tag>

  <tag>
    <description>
        Removes a scoped variable (from a particular scope, if specified).
    </description>
    <name>remove
    <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag
    <body-content>empty
    <attribute>
        <description>
Name of the scoped variable to be removed.
        </description>
        <name>var
        <required>true
        <rtexprvalue>false
    </attribute>
    <attribute>
        <description>
Scope for var.
        </description>
        <name>scope
        <required>false
        <rtexprvalue>false
    </attribute>
  </tag>

 <tag>
    <description>
        Sets the result of an expression evaluation in a 'scope'
    </description>
    <name>set
    <tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag
    <body-content>JSP
    <attribute>
        <description>
Name of the exported scoped variable to hold the value
specified in the action. The type of the scoped variable is
whatever type the value expression evaluates to.
        </description>
        <name>var
        <required>false
        <rtexprvalue>false
    </attribute>
    <attribute>
        <description>
Expression to be evaluated.
        </description>
        <name>value
        <required>false
        <rtexprvalue>true
    </attribute>
    <attribute>
        <description>
Target object whose property will be set. Must evaluate to
a JavaBeans object with setter property property, or to a
java.util.Map object.
        </description>
        <name>target
        <required>false
        <rtexprvalue>true
    </attribute>
    <attribute>
        <description>
Name of the property to be set in the target object.
        </description>
        <name>property
        <required>false
        <rtexprvalue>true
    </attribute>
    <attribute>
        <description>
Scope for var.
        </description>
        <name>scope
        <required>false
        <rtexprvalue>false
    </attribute>
  </tag>

  <tag>
    <description>
        Creates a URL with optional query parameters.
    </description>
    <name>url
    <tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag
    <body-content>JSP
    <attribute>
        <description>
Name of the exported scoped variable for the
processed url. The type of the scoped variable is
String.
        </description>
        <name>var
        <required>false
        <rtexprvalue>false
    </attribute>
    <attribute>
        <description>
Scope for var.
        </description>
        <name>scope
        <required>false
        <rtexprvalue>false
    </attribute>
    <attribute>
        <description>
URL to be processed.
        </description>
        <name>value
        <required>false
        <rtexprvalue>true
    </attribute>
    <attribute>
        <description>
Name of the context when specifying a relative URL
resource that belongs to a foreign context.
        </description>
        <name>context
        <required>false
        <rtexprvalue>true
    </attribute>
  </tag>

  <tag>
    <description>
	Subtag of <choose> that includes its body if its
	condition evalutes to 'true'
    </description>
    <name>when
    <tag-class>org.apache.taglibs.standard.tag.rt.core.WhenTag
    <body-content>JSP
    <attribute>
        <description>
The test condition that determines whether or not the
body content should be processed.
        </description>
        <name>test
        <required>true
        <rtexprvalue>true
	<type>boolean
    </attribute>
  </tag>

</taglib>

Other Jetty examples (source code examples)

Here is a short list of links related to this Jetty c.tld source code file:

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

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 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.