Author: bayard Date: Sat Jan 3 23:06:47 2009 New Revision: 731183 URL: http://svn.apache.org/viewvc?rev=731183&view=rev Log: Migrated to M2
Added: jakarta/taglibs/proper/datetime/trunk/LICENSE.txt - copied unchanged from r731146, jakarta/taglibs/proper/string/trunk/LICENSE.txt jakarta/taglibs/proper/datetime/trunk/NOTICE.txt - copied, changed from r731146, jakarta/taglibs/proper/string/trunk/NOTICE.txt jakarta/taglibs/proper/datetime/trunk/pom.xml (with props) jakarta/taglibs/proper/datetime/trunk/src/assembly/ - copied from r731146, jakarta/taglibs/proper/string/trunk/src/assembly/ jakarta/taglibs/proper/datetime/trunk/src/changes/ jakarta/taglibs/proper/datetime/trunk/src/changes/changes.xml (with props) jakarta/taglibs/proper/datetime/trunk/src/main/ jakarta/taglibs/proper/datetime/trunk/src/main/resources/ jakarta/taglibs/proper/datetime/trunk/src/main/resources/META-INF/ jakarta/taglibs/proper/datetime/trunk/src/main/resources/META-INF/taglibs-datetime.tld (with props) jakarta/taglibs/proper/datetime/trunk/xdocs/ jakarta/taglibs/proper/datetime/trunk/xdocs/index.xml (with props) Copied: jakarta/taglibs/proper/datetime/trunk/NOTICE.txt (from r731146, jakarta/taglibs/proper/string/trunk/NOTICE.txt) URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/datetime/trunk/NOTICE.txt?p2=jakarta/taglibs/proper/datetime/trunk/NOTICE.txt&p1=jakarta/taglibs/proper/string/trunk/NOTICE.txt&r1=731146&r2=731183&rev=731183&view=diff ============================================================================== --- jakarta/taglibs/proper/string/trunk/NOTICE.txt (original) +++ jakarta/taglibs/proper/datetime/trunk/NOTICE.txt Sat Jan 3 23:06:47 2009 @@ -1,5 +1,5 @@ -Apache Jakarta String Taglib -Copyright 2001-2009 The Apache Software Foundation +Apache Jakarta DateTime Taglib +Copyright 2000-2009 The Apache Software Foundation This product includes software developed by The Apache Software Foundation (http://www.apache.org/). Added: jakarta/taglibs/proper/datetime/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/datetime/trunk/pom.xml?rev=731183&view=auto ============================================================================== --- jakarta/taglibs/proper/datetime/trunk/pom.xml (added) +++ jakarta/taglibs/proper/datetime/trunk/pom.xml Sat Jan 3 23:06:47 2009 @@ -0,0 +1,76 @@ +<?xml version="1.0"?> +<!-- + 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. +--> +<!-- TODO: + Generate the examples war +--> +<project + xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.taglibs</groupId> + <artifactId>taglibs-parent</artifactId> + <version>1-SNAPSHOT</version> + </parent> + + <artifactId>datetime-taglib</artifactId> + <version>1.0.2-SNAPSHOT</version> + <name>Jakarta DateTime Taglib</name> + + <inceptionYear>2000</inceptionYear> + <description> + The DateTime custom tag library contains tags which can be used to handle date + and time related functions. Tags are provided for formatting a Date for output, + generating a Date from HTML forum input, using time zones, and localization. + </description> + + <url>http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html</url> + + <scm> + <connection>scm:svn:http://svn.apache.org/repos/asf/jakarta/taglibs/proper/datetime/trunk</connection> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/jakarta/taglibs/proper/datetime/trunk</developerConnection> + <url>http://svn.apache.org/viewvc/jakarta/taglibs/proper/datetime/trunk</url> + </scm> + + <developers> + <developer> + <name>Igor Kozlov</name> + </developer> + <developer> + <name>Glenn Nielsen</name> + <id>glenn</id> + </developer> + </developers> + + <dependencies> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.4</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jsp-api</artifactId> + <version>2.0</version> + <scope>provided</scope> + </dependency> + </dependencies> + +</project> Propchange: jakarta/taglibs/proper/datetime/trunk/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: jakarta/taglibs/proper/datetime/trunk/src/changes/changes.xml URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/datetime/trunk/src/changes/changes.xml?rev=731183&view=auto ============================================================================== --- jakarta/taglibs/proper/datetime/trunk/src/changes/changes.xml (added) +++ jakarta/taglibs/proper/datetime/trunk/src/changes/changes.xml Sat Jan 3 23:06:47 2009 @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<document> + <properties> + <title>DateTime Taglib changes</title> + </properties> + <body> + +<release version="1.1 Development" date="01/26/2003" description="Added new features"> + <action> + Added <b>dateFormatSymbols</b> tag. + </action> + <action> + Added support for <b>dateFormatSymbols</b> <b>symbolsRef</b> + script variable to the <b>format</b> tag. + </action> +</release> + +<release version="1.0.1" date="12/1/2002" description="1.0.1 Release"> + <action> + Improved packaging of release archives. + </action> +</release> + +<release version="1.0" date="04/14/2002" description="1.0 Release"/> + +<release version="1.0 Development" date="04/06/2002" description="Bug fixes to nightly build and new feature."> + <action> + Added <b>localeRef</b> attribute to all tags + which use the <b>locale</b> attribute flag. This can + be used to set the name of a application, page, request, + or session attribute which contains a java.util.Locale + object to use as the locale. + </action> + <action> + Fixed a bug in tags such as eras and weekdays which caused + incorrect results after first use in servlet containers which + reuse tag object instances. + </action> +</release> + +<release version="1.0 Beta 1" date="07/22/2001" description="First Beta Release"/> + +<release version="Pre Beta" date="07/07/2001" description="Clean up of tag library prior to performing a beta release, moving toward an official release. "> + <action> + Changed the name of the <b>currentime</b> tag to + <b>currentTime</b>. + </action> + <action> + Changed the name of the <b>timeZone</b> tag to + <b>timeZone</b>. + </action> + <action> + Changed the name of the <b>timezones</b> tag to + <b>timeZones</b>. + </action> + <action> + Changed the name of the <b>ampms</b> tag to + <b>amPms</b>. + </action> + <action> + Changed the name of the <b>parse</b> tag <b>timezone</b> + attribute to <b>timeZone</b>. + </action> + <action> + Changed the name of the <b>format</b> tag <b>timezone</b> + attribute to <b>timeZone</b>. + </action> + <action> + Added the <b>patternId</b> attribute to the <b>format</b> + and <b>parse</b> tags. + </action> +</release> + +<release version="Development" date="04/26/2001" description="Implementation of some requested changes. "> + <action> + Added <b>date</b> and <b>default</b> attributes to the + <b>format</b> tag. + </action> + <action> + The <b>format</b> tag now ignores any white space in its + tag body. + </action> +</release> + +<release version="Development" date="11/05/2000" description="Initial version of tag library before Jakarta-Taglibs had an official release policy for tag libraries. "/> + +</body> +</document> Propchange: jakarta/taglibs/proper/datetime/trunk/src/changes/changes.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: jakarta/taglibs/proper/datetime/trunk/src/main/resources/META-INF/taglibs-datetime.tld URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/datetime/trunk/src/main/resources/META-INF/taglibs-datetime.tld?rev=731183&view=auto ============================================================================== --- jakarta/taglibs/proper/datetime/trunk/src/main/resources/META-INF/taglibs-datetime.tld (added) +++ jakarta/taglibs/proper/datetime/trunk/src/main/resources/META-INF/taglibs-datetime.tld Sat Jan 3 23:06:47 2009 @@ -0,0 +1,993 @@ +<?xml version="1.0" ?> +<!-- + Copyright 1999-2004 The Apache Software Foundation + + Licensed 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> + <tlib-version>1.0.1</tlib-version> + <jsp-version>1.1</jsp-version> + <short-name>datetime</short-name> + <uri>http://jakarta.apache.org/taglibs/datetime-1.0</uri> + <display-name>Datetime Tag Library</display-name> + + <description> +<p> +The DATETIME custom tag library contains tags which can be used to handle +date and time related functions. +</p> + +<p> +Tags are provided for formatting a Date for output, generating a Date from +HTML form input, using time zones, and localization. +</p> +<p> + To specify the time format use a <em>time pattern</em> string. + In this pattern, all ASCII letters are reserved as pattern letters, + which are defined as the following: + <pre> + Symbol Meaning Presentation Example + ------ ------- ------------ ------- + G era designator (Text) AD + y year (Number) 1996 + M month in year (Text & Number) July & 07 + d day in month (Number) 10 + h hour in am/pm (1~12) (Number) 12 + H hour in day (0~23) (Number) 0 + m minute in hour (Number) 30 + s second in minute (Number) 55 + S millisecond (Number) 978 + E day in week (Text) Tuesday + D day in year (Number) 189 + F day of week in month (Number) 2 (2nd Wed in July) + w week in year (Number) 27 + W week in month (Number) 2 + a am/pm marker (Text) PM + k hour in day (1~24) (Number) 24 + K hour in am/pm (0~11) (Number) 0 + z time zone (Text) Pacific Standard Time + ' escape for text (Delimiter) + '' single quote (Literal) ' + </pre> + The count of pattern letters determine the format.</p> + <p> + <strong>(Text)</strong>: 4 or more pattern letters--use full form, + < 4--use short or abbreviated form if one exists.</p> + <p> + <strong>(Number)</strong>: the minimum number of digits. Shorter + numbers are zero-padded to this amount. Year is handled specially; + that is, if the count of 'y' is 2, the Year will be truncated to 2 digits.</p> + <p> + <strong>(Text & Number)</strong>: 3 or over, use text, otherwise use number. +</p> + <p> + Any characters in the pattern that are not in the ranges of ['a'..'z'] + and ['A'..'Z'] will be treated as quoted text. For instance, characters + like ':', '.', ' ', '#' and '@' will appear in the resulting time text + even they are not embraced within single quotes.</p> + <p> + A pattern containing any invalid pattern letter will result in a thrown + exception during formatting or parsing.</p> + + <p> + <strong>Examples Using the US Locale:</strong> + <pre> + Format Pattern Result + -------------- ------- + "yyyy.MM.dd G 'at' hh:mm:ss z" 1996.07.10 AD at 15:08:56 PDT + "EEE, MMM d, ''yy" Wed, July 10, '96 + "h:mm a" 12:08 PM + "hh 'o''clock' a, zzzz" 12 o'clock PM, Pacific Daylight Time + "K:mm a, z" 0:00 PM, PST + "yyyyy.MMMMM.dd GGG hh:mm aaa" 1996.July.10 AD 12:08 PM + </pre> +</p> + </description> + + <tag> + <name>currentTime</name> + <tag-class>org.apache.taglibs.datetime.CurrentTimeTag</tag-class> + <body-content>empty</body-content> + <display-name>currentTime</display-name> + + <description> + Gets the current time in milliseconds since Jan 1, 1970 GMT. + </description> + + <summary> + Gets the current time in milliseconds since Jan 1, 1970 GMT. + </summary> + <availability>1.0</availability> + <restrictions>None</restrictions> + + <example> +Display the current time +<![CDATA[ +The current time in milliseconds since midnight January 1, 1970 GMT is: +<dt:currentTime/> +]]> + </example> + + </tag> + + <tag> + <name>format</name> + <tag-class>org.apache.taglibs.datetime.FormatTag</tag-class> + <body-content>JSP</body-content> + <display-name>format</display-name> + + <description> + Formats a date in milliseconds since Jan 1, 1970 GMT for output + as a date string. + </description> + + <summary> + Formats a date in milliseconds since Jan 1, 1970 GMT for output + as a date string. + </summary> + <availability>1.0</availability> + <restrictions> + The body of the tag must be a Date in milliseconds since + Jan 1, 1970 GMT. + </restrictions> + + <attribute> + <name>pattern</name> + <required>no</required> + <rtexprvalue>no</rtexprvalue> + <description> + <a href="#pattern">Date Time Pattern Format</a> + string to use for formatting the date. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>patternId</name> + <required>no</required> + <rtexprvalue>no</rtexprvalue> + <description> + Name of a script variable which contains a + <a href="#pattern">Date Time Pattern Format</a> + string to use for formatting the date. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>timeZone</name> + <required>no</required> + <rtexprvalue>no</rtexprvalue> + <description> + Name of a timeZone script id variable. Date formatting is + adjusted for the time zone. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>date</name> + <required>no</required> + <rtexprvalue>yes</rtexprvalue> + <description> + Set the date to format by passing in a Date object + using a runtime expression value. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>symbolsRef</name> + <required>no</required> + <rtexprvalue>yes</rtexprvalue> + <description> + Specify the name of a page, session, application, or request scope + attribute of type java.text.DateFormatSymbols to use for symbols. + </description> + <availability>1.1</availability> + </attribute> + + <attribute> + <name>default</name> + <required>no</required> + <rtexprvalue>no</rtexprvalue> + <description> + Set the default text to output if their is not + a valid date input as a date object or in the tag body. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>locale</name> + <required>no</required> + <rtexprvalue>no</rtexprvalue> + <description> + Set to "<b>true</b>" to use the clients locale, + if known, when formatting date. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>localeRef</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Specify the name of a page, session, application, or request scope + attribute of type java.util.Locale to use for locale. + </description> + <availability>1.0</availability> + </attribute> + + <example> +Display the current time formatted +<![CDATA[ +The current time is: +<dt:format pattern="MM/dd/yyyy hh:mm"><dt:currentTime/></dt:format> +]]> + </example> + + </tag> + + <tag> + <name>dateFormatSymbols</name> + <tag-class>org.apache.taglibs.datetime.DateFormatSymbolsTag</tag-class> + <tei-class>org.apache.taglibs.datetime.DateFormatSymbolsTEI</tei-class> + <body-content>EMPTY</body-content> + <display-name>dateFormatSymbols</display-name> + + <description> + <p>Create DateFormatSymbols object that will be used for formating.</p> + </description> + + <summary> + Parses a date string and outputs the time in milliseconds since + Jan 1, 1970 GMT. + </summary> + <availability>1.1</availability> + <restrictions> + This tag must be placed early in the page (before call of format tag with symbolsRef attribute) + </restrictions> + + <variable> + <name-from-attribute>id</name-from-attribute> + <variable-class>java.text.DateFormatSymbols</variable-class> + <declare>true</declare> + <scope>AT_BEGIN</scope> + <description> + The scripting variable declared allows other tags or scriptlets + to access the DateFormatSymbols defined by this tag. + </description> + <availability>1.1</availability> + </variable> + + <attribute> + <name>id</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <description> + Script variable id for use with standard <b>jsp:getProperty</b> + tag and as an attribute to other tags in this tag library. + </description> + <availability>1.1</availability> + </attribute> + + <attribute> + <name>baseName</name> + <required>true</required> + <rtexprvalue>true</rtexprvalue> + <description> + Specify the name to locate ResourceBundle + </description> + <availability>1.1</availability> + </attribute> + + <attribute> + <name>locale</name> + <required>no</required> + <rtexprvalue>no</rtexprvalue> + <description> + Set to "<b>true</b>" to use the clients locale, + if known, when formatting date. + </description> + <availability>1.1</availability> + </attribute> + + <attribute> + <name>localeRef</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Specify the name of a page, session, application, or request scope + attribute of type java.util.Locale to use for locale. + </description> + <availability>1.1</availability> + </attribute> + + <attribute> + <name>scope</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Specify the scope that will be used for store DateFormatSymbols variable + </description> + <availability>1.1</availability> + </attribute> + + <example> +Display the current time formatted +<![CDATA[ +<dt:dateFormatSymbols id="symbols" baseName="DateFormatSymbolsProperties"/> +<dt:format symbolsRef="symbols"><dt:currentTime/></dt:format> + +Attribute baseName point to property file with this format: + +DateFormatSymbolsProperties.properties +# Month symbols change on custom<br> +month=true<br> +month0=January<br> +month1=February<br> +# Era symbols change on custom<br> +era=true<br> +era0=before<br> +era1=after<br> +]]> + </example> + </tag> + + <tag> + <name>parse</name> + <tag-class>org.apache.taglibs.datetime.ParseTag</tag-class> + <body-content>JSP</body-content> + <display-name>parse</display-name> + + <description> + Parses a date string and outputs the time in milliseconds since + Jan 1, 1970 GMT. + </description> + + <summary> + Parses a date string and outputs the time in milliseconds since + Jan 1, 1970 GMT. + </summary> + <availability>1.0</availability> + <restrictions> + The body of the tag is used as the Date string to parse. + </restrictions> + + <attribute> + <name>pattern</name> + <required>no</required> + <rtexprvalue>no</rtexprvalue> + <description> + <a href="#pattern">Date Time Pattern Format</a> + string to use when parsing the date string. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>patternId</name> + <required>no</required> + <rtexprvalue>no</rtexprvalue> + <description> + Name of a script variable which contains a + <a href="#pattern">Date Time Pattern Format</a> + string to use when parsing the date. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>timeZone</name> + <required>no</required> + <rtexprvalue>no</rtexprvalue> + <description> + Name of a timeZone script id variable. The date is + adjusted for the time zone. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>locale</name> + <required>no</required> + <rtexprvalue>no</rtexprvalue> + <description> + Set to "<b>true</b>" to use the clients locale, + if known, when formatting date. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>localeRef</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Specify the name of a page, session, application, or request scope + attribute of type java.util.Locale to use for locale. + </description> + <availability>1.0</availability> + </attribute> + + <example> +Output the date in milliseconds for a specific day, month, and year +<![CDATA[ +<req:setAttribute name="pattern">yyyy MM dd</req:setAttribute> +<dt:parse patternId="pattern">2000 11 5</dt:parse> +]]> + </example> + + </tag> + + <tag> + <name>timeZone</name> + <tag-class>org.apache.taglibs.datetime.TimeZoneTag</tag-class> + <body-content>JSP</body-content> + <display-name>timeZone</display-name> + + <description> + Create a time zone script variable for use with the parse or + format tags. + </description> + + <summary> + Create a time zone script variable for use with the parse or + format tags. + </summary> + <availability>1.0</availability> + <restrictions> + The body of the tag must be empty or a valid time zone ID. + If a valid time zone ID is not found, the default time zone for the + server is used. + </restrictions> + + <variable> + <name-from-attribute>id</name-from-attribute> + <variable-class>java.util.TimeZone</variable-class> + <declare>true</declare> + <scope>AT_END</scope> + <description> + A TimeZone for use with <b>parse</b> and <b>format</b> tags. + </description> + + <availability>1.0</availability> + + </variable> + + <attribute> + <name>id</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + <description> + Script variable id of the time zone for use with the + <b>parse</b> and <b>format</b> tags. + </description> + <availability>1.0</availability> + </attribute> + + <example> +Sets the time zone to America/Chicago +<![CDATA[ +<dt:timeZone id="tz">America/Chicago</dt:timeZone> +The current time in America/Chicago is: +<dt:format timeZone="tz"><dt:currentTime/></dt:format> +]]> + </example> + + </tag> + + <tag> + <name>timeZones</name> + <tag-class>org.apache.taglibs.datetime.TimeZonesTag</tag-class> + <tei-class>org.apache.taglibs.datetime.TimeZonesTEI</tei-class> + <body-content>JSP</body-content> + <display-name>timeZones</display-name> + <description> + Loop through all time zones. + </description> + + <summary>Loop through all time zones.</summary> + <availability>1.0</availability> + <restrictions>None</restrictions> + + <variable> + <name-from-attribute>id</name-from-attribute> + <variable-class>org.apache.taglibs.datetime.TimeZonesTag</variable-class> + <declare>true</declare> + <scope>NESTED</scope> + <description>TimeZones Bean</description> + + <availability>1.0</availability> + + <beanprop> + <name>zoneId</name> + <get>Yes</get> + <set>No</set> + <description> + Returns the current time zone ID. + </description> + <availability>1.0</availability> + </beanprop> + <beanprop> + <name>displayName</name> + <get>Yes</get> + <set>No</set> + <description> + Returns the current time zone display name. + </description> + <availability>1.0</availability> + </beanprop> + </variable> + + <attribute> + <name>id</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + <description> + Script variable id for use with standard <b>jsp:getProperty</b> + tag. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>locale</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Set to "<b>true</b>" to use the clients locale, if known, + when formatting time zone display names. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>localeRef</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Specify the name of a page, session, application, or request scope + attribute of type java.util.Locale to use for locale. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>style</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Style of display name, either "<b>SHORT</b>" or "<b>LONG</b>". + </description> + <availability>1.0</availability> + </attribute> + + <example> + <usage> + <comment> + Generate a time zone select box + </comment> + + <code> +<![CDATA[ +Select a Time Zone +<select name="timeZone"> + <dt:timeZones id="tz"> + <option value="<jsp:getProperty name="tz" property="zoneId"/>"> + <jsp:getProperty name="tz" property="zoneId"/> + <jsp:getProperty name="tz" property="displayName"/> + </dt:timeZones> +</select> +]]> + </code> + </usage> + </example> + + </tag> + + <tag> + <name>months</name> + <tag-class>org.apache.taglibs.datetime.MonthsTag</tag-class> + <tei-class>org.apache.taglibs.datetime.MonthsTEI</tei-class> + <body-content>JSP</body-content> + <display-name>months</display-name> + <description> + Loop through the months of the year. + </description> + + <summary>Loop through the months of the year.</summary> + <availability>1.0</availability> + <restrictions>None</restrictions> + + <variable> + <name-from-attribute>id</name-from-attribute> + <variable-class>org.apache.taglibs.datetime.MonthsTag</variable-class> + <declare>true</declare> + <scope>NESTED</scope> + <description>Months of the year Bean</description> + + <availability>1.0</availability> + + <beanprop> + <name>monthOfYear</name> + <get>Yes</get> + <set>No</set> + <description> + Returns the number of the month of the year. + </description> + <availability>1.0</availability> + </beanprop> + <beanprop> + <name>month</name> + <get>Yes</get> + <set>No</set> + <description> + Returns the full name of the month of the year. + </description> + <availability>1.0</availability> + </beanprop> + <beanprop> + <name>shortMonth</name> + <get>Yes</get> + <set>No</set> + <description> + Returns the short name of the month of the year. + </description> + <availability>1.0</availability> + </beanprop> + </variable> + + <attribute> + <name>id</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + <description> + Script variable id for use with standard <b>jsp:getProperty</b> + tag. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>locale</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Set to "<b>true</b>" to use the clients locale, if known, + when listing the month names. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>localeRef</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Specify the name of a page, session, application, or request scope + attribute of type java.util.Locale to use for locale. + </description> + <availability>1.0</availability> + </attribute> + + <example> + <usage> + <comment> + Generate a Month select box + </comment> + + <code> +<![CDATA[ +Select a Month +<select name="month"> + <dt:months id="mon"> + <option value="<jsp:getProperty name="mon" property="monthOfYear"/>"> + <jsp:getProperty name="mon" property="month"/> + </dt:months> +</select> +]]> + </code> + </usage> + </example> + + </tag> + + <tag> + <name>weekdays</name> + <tag-class>org.apache.taglibs.datetime.WeekdaysTag</tag-class> + <tei-class>org.apache.taglibs.datetime.WeekdaysTEI</tei-class> + <body-content>JSP</body-content> + <display-name>weekdays</display-name> + <description> + Loop through the days of the week. + </description> + + <summary>Loop through the days of the week.</summary> + <availability>1.0</availability> + <restrictions>None</restrictions> + + <variable> + <name-from-attribute>id</name-from-attribute> + <variable-class>org.apache.taglibs.datetime.WeekdaysTag</variable-class> + <declare>true</declare> + <scope>NESTED</scope> + <description>Days of the week Bean</description> + + <availability>1.0</availability> + + <beanprop> + <name>dayOfWeek</name> + <get>Yes</get> + <set>No</set> + <description> + Returns the number of the day of the week. + </description> + <availability>1.0</availability> + </beanprop> + <beanprop> + <name>weekday</name> + <get>Yes</get> + <set>No</set> + <description> + Returns the full name of the day of the week. + </description> + <availability>1.0</availability> + </beanprop> + <beanprop> + <name>shortWeekday</name> + <get>Yes</get> + <set>No</set> + <description> + Returns the short name of the day of the week. + </description> + <availability>1.0</availability> + </beanprop> + </variable> + + <attribute> + <name>id</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + <description> + Script variable id for use with standard <b>jsp:getProperty</b> + tag. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>locale</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Set to "<b>true</b>" to use the clients locale, if known, + when listing the week day names. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>localeRef</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Specify the name of a page, session, application, or request scope + attribute of type java.util.Locale to use for locale. + </description> + <availability>1.0</availability> + </attribute> + + <example> + <usage> + <comment> + Generate a Week Day select box + </comment> + + <code> +<![CDATA[ +Select a Week Day +<select name="weekday"> + <dt:weekdays id="day"> + <option value="<jsp:getProperty name="day" property="dayOfWeek"/>"> + <jsp:getProperty name="day" property="weekday"/> + </dt:weekdays> +</select> +]]> + </code> + </usage> + </example> + + </tag> + + <tag> + <name>amPms</name> + <tag-class>org.apache.taglibs.datetime.AmPmsTag</tag-class> + <tei-class>org.apache.taglibs.datetime.AmPmsTEI</tei-class> + <body-content>JSP</body-content> + <display-name>amPms</display-name> + <description> + Loop through the am/pm names. + </description> + + <summary>Loop through the am/pm names.</summary> + <availability>1.0</availability> + <restrictions>None</restrictions> + + <variable> + <name-from-attribute>id</name-from-attribute> + <variable-class>org.apache.taglibs.datetime.AmPmsTag</variable-class> + <declare>true</declare> + <scope>NESTED</scope> + <description>Am/Pm names Bean</description> + + <availability>1.0</availability> + + <beanprop> + <name>name</name> + <get>Yes</get> + <set>No</set> + <description> + Returns the am/pm name. + </description> + <availability>1.0</availability> + </beanprop> + </variable> + + <attribute> + <name>id</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + <description> + Script variable id for use with standard <b>jsp:getProperty</b> + tag. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>locale</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Set to "<b>true</b>" to use the clients locale, if known, + when listing the am/pm names. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>localeRef</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Specify the name of a page, session, application, or request scope + attribute of type java.util.Locale to use for locale. + </description> + <availability>1.0</availability> + </attribute> + + <example> + <usage> + <comment> + Generate an am/pm select box + </comment> + + <code> +<![CDATA[ +Select AM or PM: +<select name="ampm"> + <dt:ampms id="ap"> + <option value="<jsp:getProperty name="ap" property="name"/>"> + <jsp:getProperty name="ap" property="name"/> + </dt:ampms> +</select> +]]> + </code> + </usage> + </example> + + </tag> + + <tag> + <name>eras</name> + <tag-class>org.apache.taglibs.datetime.ErasTag</tag-class> + <tei-class>org.apache.taglibs.datetime.ErasTEI</tei-class> + <body-content>JSP</body-content> + <display-name>eras</display-name> + <description> + Loop through the era names. + </description> + + <summary>Loop through the era names.</summary> + <availability>1.0</availability> + <restrictions>None</restrictions> + + <variable> + <name-from-attribute>id</name-from-attribute> + <variable-class>org.apache.taglibs.datetime.ErasTag</variable-class> + <declare>true</declare> + <scope>NESTED</scope> + <description>Era names Bean</description> + + <availability>1.0</availability> + + <beanprop> + <name>name</name> + <get>Yes</get> + <set>No</set> + <description> + Returns the era name. + </description> + <availability>1.0</availability> + </beanprop> + </variable> + + <attribute> + <name>id</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + <description> + Script variable id for use with standard <b>jsp:getProperty</b> + tag. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>locale</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Set to "<b>true</b>" to use the clients locale, if known, + when listing the era names. + </description> + <availability>1.0</availability> + </attribute> + + <attribute> + <name>localeRef</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + <description> + Specify the name of a page, session, application, or request scope + attribute of type java.util.Locale to use for locale. + </description> + <availability>1.0</availability> + </attribute> + + <example> + <usage> + <comment> + Generate an era select box + </comment> + + <code> +<![CDATA[ +Select an Era: +<select name="era"> + <dt:era id="era"> + <option value="<jsp:getProperty name="era" property="name"/>"> + <jsp:getProperty name="era" property="name"/> + </dt:era> +</select> +]]> + </code> + </usage> + </example> + + </tag> + +</taglib> Propchange: jakarta/taglibs/proper/datetime/trunk/src/main/resources/META-INF/taglibs-datetime.tld ------------------------------------------------------------------------------ svn:eol-style = native Added: jakarta/taglibs/proper/datetime/trunk/xdocs/index.xml URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/datetime/trunk/xdocs/index.xml?rev=731183&view=auto ============================================================================== --- jakarta/taglibs/proper/datetime/trunk/xdocs/index.xml (added) +++ jakarta/taglibs/proper/datetime/trunk/xdocs/index.xml Sat Jan 3 23:06:47 2009 @@ -0,0 +1,57 @@ +<?xml version="1.0"?> +<!-- + Licensed 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. +--> +<document> + + <properties> + <title>The Jakarta-Taglibs Project: DateTime Tag Library</title> + </properties> + + <body> + + + <section name="DateTime Tag Library" href="Welcome"> + + <p>The DateTime custom tag library contains tags which can be used to handle date + and time related functions. Tags are provided for formatting a Date for output, + generating a Date from HTML forum input, using time zones, and localization.</p> + + </section> + + <section name="News" href="News"> + <table> + <tr><td>12/1/2002</td> + <td>Version 1.0.1 Released</td></tr> + <tr><td>04/14/2002</td> + <td>Version 1.0 Released</td></tr> + <tr><td>07/22/2001</td> + <td>Version 1.0 Beta 1 Released</td></tr> + </table> + </section> + + <section name="Download" href="Download"> + + <p>Download a binary distribution of the Datetime Tag Library</p> + <ul> + <li> + Download the Datetime Tag Library 1.0.1 Release from an + <a href="http://jakarta.apache.org/site/downloads/downloads_taglibs-datetime.cgi"> + Apache Jakarta Project Mirror</a> + </li> + </ul> + + </section> + + </body> +</document> Propchange: jakarta/taglibs/proper/datetime/trunk/xdocs/index.xml ------------------------------------------------------------------------------ svn:eol-style = native --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: taglibs-dev-h...@jakarta.apache.org