[Jspmyadmin-devs] CVS: jspmyadmin/web/WEB-INF dbtags.tld,NONE,1.1 i18n.tld,NONE,1.1 regexp.tld,NONE,
Brought to you by:
zsolyfree
|
From: Adrian A. <aal...@us...> - 2002-07-26 04:08:07
|
Update of /cvsroot/jspmyadmin/jspmyadmin/web/WEB-INF In directory usw-pr-cvs1:/tmp/cvs-serv30053/web/WEB-INF Added Files: dbtags.tld i18n.tld regexp.tld web.xml Log Message: Some more changes --- NEW FILE: dbtags.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> <!-- a tag library descriptor --> <taglib> <!-- after this the default space is "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd" --> <!-- The version number of this tag library --> <tlibversion>1.0</tlibversion> <!-- The JSP specification version required to function --> <jspversion>1.1</jspversion> <!-- The short name of this tag library --> <shortname>DBTags</shortname> <!-- Public URI that uniquely identifies this version of the tag library --> <uri>http://jakarta.apache.org/taglibs/dbtags</uri> <!-- General information about this tag library --> <info> The DBTags custom tag library contains tags that can retrieve data from and insert data into databases. </info> <!-- ******************** Defined Custom Tags *************************** --> <!-- connection tags --> <tag> <name>connection</name> <tagclass>org.apache.taglibs.jdbc.connection.ConnectionTag</tagclass> <teiclass>org.apache.taglibs.jdbc.connection.ConnectionTEI</teiclass> <bodycontent>JSP</bodycontent> <info>Opens a connection based on either a url in the body of the tag or by using the "datasource" tag attribute to reference to a javax.sql.DataSource page attribute. driver (optional), userid (optional), and password (optional) are also set in the body of the tag.</info> <attribute> <name>id</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>jndiName</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>dataSource</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>url</name> <tagclass>org.apache.taglibs.jdbc.connection.DatabaseURLTag</tagclass> <bodycontent>JSP</bodycontent> <info>Sets the database URL of the enclosing connection tag according to the initParameter, if specified, or from the body of the tag.</info> <attribute> <name>initParameter</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>driver</name> <tagclass>org.apache.taglibs.jdbc.connection.DriverTag</tagclass> <bodycontent>JSP</bodycontent> <info>Sets the java.sql.Driver class name for the enclosing connection tag according to the initParameter, if specified, or the body of the tag. The tag body will be trimmed.</info> <attribute> <name>initParameter</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>jndiName</name> <tagclass>org.apache.taglibs.jdbc.connection.JndiNameTag</tagclass> <bodycontent>JSP</bodycontent> <info>Sets the jndi named javax.sql.DataSource for the enclosing connection tag according to the initParameter, if specified, or the body of the tag. The tag body will be trimmed.</info> <attribute> <name>initParameter</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>userId</name> <tagclass>org.apache.taglibs.jdbc.connection.UserIdTag</tagclass> <bodycontent>JSP</bodycontent> <info>JSP tag userid, sets the database user id for the enclosing connection tag. This tag is optional if the user name has been encoded inside the database URL, or if the database does not require a user name. The user name is read from the indicated initParameter, if the attribute is set, or from the body of the tag if it is not. The tag body will be trimmed.</info> <attribute> <name>initParameter</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>password</name> <tagclass>org.apache.taglibs.jdbc.connection.PasswordTag</tagclass> <bodycontent>JSP</bodycontent> <info>JSP tag password, sets the password for the enclosing connection tag. This tag is optional if the password has been encoded inside the database URL, or if the database does not require a password. The password is read from the indicated initParameter, if the parameter is set, or from the body of the tag if it is not. The tag body will be trimmed.</info> <attribute> <name>initParameter</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>closeConnection</name> <tagclass>org.apache.taglibs.jdbc.connection.CloseConnectionTag</tagclass> <bodycontent>empty</bodycontent> <info>Close the specified connection. The "conn" attribute is the name of a connection object in the page context.</info> <attribute> <name>conn</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <!-- statement only tags --> <tag> <name>statement</name> <tagclass>org.apache.taglibs.jdbc.statement.StatementImplTag</tagclass> <teiclass>org.apache.taglibs.jdbc.statement.StatementTEI</teiclass> <bodycontent>JSP</bodycontent> <info>JSP tag statement, uses the enclosed query, resultset or execute tags to perform a database operation.</info> <attribute> <name>id</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>conn</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>escapeSql</name> <tagclass>org.apache.taglibs.jdbc.statement.EscapeSQLTag</tagclass> <bodycontent>JSP</bodycontent> <info>Replaces each single quote in the tag body with a pair of single quotes. Body content will not be trimmed.</info> </tag> <!-- statement and prepared statement tags --> <tag> <name>query</name> <tagclass>org.apache.taglibs.jdbc.statement.QueryTag</tagclass> <bodycontent>JSP</bodycontent> <info>Sets the SQL query for the enclosing statement or preparedstatement tag.</info> </tag> <tag> <name>execute</name> <tagclass>org.apache.taglibs.jdbc.statement.ExecuteTag</tagclass> <bodycontent>JSP</bodycontent> <info>Executes the query for the enclosing statement or preparedstatement tag.</info> <attribute> <name>ignoreErrors</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>wasEmpty</name> <tagclass>org.apache.taglibs.jdbc.statement.WasEmptyTag</tagclass> <bodycontent>JSP</bodycontent> <info> Executes its body if the last ResultSet tag received 0 rows from the database. You must be after a ResultSet tag and inside a StatementTag or PreparedStatementTag, or an error will be generated. </info> </tag> <tag> <name>wasNotEmpty</name> <tagclass>org.apache.taglibs.jdbc.statement.WasNotEmptyTag</tagclass> <bodycontent>JSP</bodycontent> <info> Executes its body if the last ResultSet tag received more than 0 rows from the database. You must be after a ResultSet tag and inside a StatementTag or PreparedStatementTag, or an error will be generated. </info> </tag> <tag> <name>rowCount</name> <tagclass>org.apache.taglibs.jdbc.statement.RowCountTag</tagclass> <bodycontent>empty</bodycontent> <info>Prints out the number of rows retrieved from the database. It can be used inside a ResultSet tag to provide a running count of rows retreived, or after the ResultSet tag to display the total number. Using the tag before the ResultSet or outside of a Statement or PreparedStatement will produce an error.</info> </tag> <!-- prepared statement only tags --> <tag> <name>preparedStatement</name> <tagclass>org.apache.taglibs.jdbc.preparedstatement.PreparedStatementImplTag</tagclass> <teiclass>org.apache.taglibs.jdbc.preparedstatement.PreparedStatementTEI</teiclass> <bodycontent>JSP</bodycontent> <info>JSP tag preparedstatement, used the enclosed query, resultset/execute, and set* tags to perform a database operation.</info> <attribute> <name>id</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>conn</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>setColumn</name> <tagclass>org.apache.taglibs.jdbc.preparedstatement.SetColumnTag</tagclass> <bodycontent>JSP</bodycontent> <info>Setter for the enclosing preparedstatement tag. Set the String inside the tag body. Body content will not be trimmed.</info> <attribute> <name>position</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <!-- resultset tags --> <tag> <name>resultSet</name> <tagclass>org.apache.taglibs.jdbc.resultset.ResultSetTag</tagclass> <teiclass>org.apache.taglibs.jdbc.resultset.ResultSetTEI</teiclass> <bodycontent>JSP</bodycontent> <info>JSP tag resulset, executes the query and loops through the results for the enclosing statement or preparedstatement tag. The body of this tag is executed once per row in the resultset. The optional "loop" attribute, which default to true, specifies whether to execute the tag body once per row "true", or to simply assign the ResultSet to the page attribute specified by "id".</info> <attribute> <name>id</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>loop</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>wasNull</name> <tagclass>org.apache.taglibs.jdbc.resultset.WasNullTag</tagclass> <bodycontent>JSP</bodycontent> <info>Executes its body if the last getColumn tag received a null value from the database. You must be inside a resultset tag and there must be a previous getColumn tag, or an error will be generated.</info> </tag> <tag> <name>wasNotNull</name> <tagclass>org.apache.taglibs.jdbc.resultset.WasNotNullTag</tagclass> <bodycontent>JSP</bodycontent> <info>Executes its body if the last getColumn tag did not receive a null value from the database. You must be inside a resultset tag and there must be a previous getColumn tag, or an error will be generated.</info> </tag> <tag> <name>getColumn</name> <tagclass>org.apache.taglibs.jdbc.resultset.GetColumnTag</tagclass> <teiclass>org.apache.taglibs.jdbc.resultset.BaseGetterTEI</teiclass> <bodycontent>empty</bodycontent> <info>Gets the value, as a String, of a coulmn in the enclosing resultset. Either set the column number via the "position" attribute, or set the column name with the "colName" attribute. You can optionally set the value, as a String, to a serlvet attribute instead of the tag body with the "to" attribute. The scope of the servlet attribute is specified by the "scope" XML attribute (default = page). Dates, times, timestamps and numbers are output according to the JVM's defaults.</info> <attribute> <name>position</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>colName</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>to</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>getNumber</name> <tagclass>org.apache.taglibs.jdbc.resultset.GetNumberTag</tagclass> <teiclass>org.apache.taglibs.jdbc.resultset.BaseGetterTEI</teiclass> <bodycontent>empty</bodycontent> <info> Similar to getColumn, but provides more precise control over number formatting. The "format" attribute can be either a pattern as accepted by the DecimalFormat constructor or a style: "CURRENCY", "PERCENT" or "NUMBER". The "locale" attribute can have one to three components as accepted by the Locale constructor: language, country and variant. They are separated by "_". If neither the format nor locale attribute is set, output should be identical to getColumn. </info> <attribute> <name>position</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>colName</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>to</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>format</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>getTime</name> <tagclass>org.apache.taglibs.jdbc.resultset.GetTimeTag</tagclass> <teiclass>org.apache.taglibs.jdbc.resultset.BaseGetterTEI</teiclass> <bodycontent>empty</bodycontent> <info> Similar to getColumn, but provides more precise control over java.sql.Time formatting. The "format" attribute can be either a pattern as accepted by SimpleDateFormat or a style: "FULL", "LONG", "MEDIUM" or "SHORT". The "locale" attribute can have one to three components as accepted by the Locale constructor: language, country and variant. They are separated by "_". If neither the format nor locale attribute is set, output should be identical to getColumn. </info> <attribute> <name>position</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>colName</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>to</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>format</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>getDate</name> <tagclass>org.apache.taglibs.jdbc.resultset.GetDateTag</tagclass> <teiclass>org.apache.taglibs.jdbc.resultset.BaseGetterTEI</teiclass> <bodycontent>empty</bodycontent> <info> Similar to getColumn, but provides more precise control over java.sql.Date formatting. The "format" attribute can be either a pattern as accepted by SimpleDateFormat or a style: "FULL", "LONG", "MEDIUM" or "SHORT". The "locale" attribute can have one to three components as accepted by the Locale constructor: language, country and variant. They are separated by "_". If neither the format nor locale attribute is set, output should be identical to getColumn. </info> <attribute> <name>position</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>colName</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>to</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>format</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>getTimestamp</name> <tagclass>org.apache.taglibs.jdbc.resultset.GetTimestampTag</tagclass> <teiclass>org.apache.taglibs.jdbc.resultset.BaseGetterTEI</teiclass> <bodycontent>empty</bodycontent> <info> Similar to getColumn, but provides more precise control over java.sql.Timestamp formatting. The required "format" attribute can be either a pattern as accepted by SimpleDateFormat or a style: "FULL", "LONG", "MEDIUM" or "SHORT". It can also can be a comma separated list of two styles, one for date and one for time. The "locale" attribute can have one to three components as accepted by the Locale constructor: language, country and variant. They are separated by "_". </info> <attribute> <name>position</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>colName</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>to</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>format</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> </taglib> --- NEW FILE: i18n.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> <taglib> <tlibversion>1.0</tlibversion> <jspversion>1.1</jspversion> <shortname>i18n</shortname> <info> These are WAM!NET internationalization tags. </info> <tag> <name>bundle</name> <tagclass>org.apache.taglibs.i18n.BundleTag</tagclass> <info>Must be placed in a JSP before any other i18n tags.</info> <attribute> <name>baseName</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>localeAttribute</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>message</name> <tagclass>org.apache.taglibs.i18n.MessageTag</tagclass> <bodycontent>JSP</bodycontent> <info>Must occur after a localize tag.</info> <attribute> <name>key</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>args</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>messageArg</name> <tagclass>org.apache.taglibs.i18n.MessageArgumentTag</tagclass> <info>Must be nested inside a message tag.</info> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>ifdef</name> <tagclass>org.apache.taglibs.i18n.IfdefTag</tagclass> <bodycontent>JSP</bodycontent> <info>Must occur after a localize tag.</info> <attribute> <name>key</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>ifndef</name> <tagclass>org.apache.taglibs.i18n.IfndefTag</tagclass> <bodycontent>JSP</bodycontent> <info>Must occur after a localize tag.</info> <attribute> <name>key</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <!-- new formatting tags --> <tag> <name>locale</name> <tagclass>org.apache.taglibs.i18n.LocaleTag</tagclass> <bodycontent>JSP</bodycontent> <info> Defines a locale context. This is either sepecified using the locale property, the combination of 'language', 'country' and the optional 'variant' property or the current HTTP request is used. If no other locale can be found then the default JVM locale is used. Other sub-tags will use this locale if no other locale is specified. </info> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>language</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>country</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>variant</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>formatString</name> <tagclass>org.apache.taglibs.i18n.FormatStringTag</tagclass> <bodycontent>JSP</bodycontent> <info> Outputs a String value or displays the defaultText property if the String is null. The defaultText defaults to "". </info> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>defaultText</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>formatNumber</name> <tagclass>org.apache.taglibs.i18n.FormatNumberTag</tagclass> <bodycontent>JSP</bodycontent> <info> Formats a number using a locale. A pattern can be specified such as '##,###.##'. If the value is null then the default text is used. If no locale is specified then the parent <i18n:locale> tag is used. If no parent <i18n:locale> tag exists then the locale is taken from the current request. If still no locale could be found then the current JVM locale is used. </info> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>pattern</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>defaultText</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>formatCurrency</name> <tagclass>org.apache.taglibs.i18n.FormatCurrencyTag</tagclass> <bodycontent>JSP</bodycontent> <info> Formats a number as a currency using a locale. If the value is null then the default text is used. If no locale is specified then the parent <i18n:locale> tag is used. If no parent <i18n:locale> tag exists then the locale is taken from the current request. If still no locale could be found then the current JVM locale is used. </info> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>defaultText</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>formatPercent</name> <tagclass>org.apache.taglibs.i18n.FormatPercentTag</tagclass> <bodycontent>JSP</bodycontent> <info> Formats a number as a percentage using a locale. If the value is null then the default text is used. If no locale is specified then the parent <i18n:locale> tag is used. If no parent <i18n:locale> tag exists then the locale is taken from the current request. If still no locale could be found then the current JVM locale is used. </info> <attribute> <name>value</name> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>defaultText</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>formatDate</name> <tagclass>org.apache.taglibs.i18n.FormatDateTag</tagclass> <bodycontent>JSP</bodycontent> <info> Formats a Date value as a time using a locale. A style (short/medium/long/full) can be specified or a pattern such as 'YYYY MMM ddd'. If the value is null then the default text is used. If no locale is specified then the parent <i18n:locale> tag is used. If no parent <i18n:locale> tag exists then the locale is taken from the current request. If still no locale could be found then the current JVM locale is used. </info> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>style</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>pattern</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>defaultText</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>formatDateTime</name> <tagclass>org.apache.taglibs.i18n.FormatDateTimeTag</tagclass> <bodycontent>JSP</bodycontent> <info> Formats a Date value as a date-time using a locale. A dateStyle and a timeStyle (short/medium/long/full) can be specified. If the value is null then the default text is used. If no locale is specified then the parent <i18n:locale> tag is used. If no parent <i18n:locale> tag exists then the locale is taken from the current request. If still no locale could be found then the current JVM locale is used. </info> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>dateStyle</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>timeStyle</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>defaultText</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> <tag> <name>formatTime</name> <tagclass>org.apache.taglibs.i18n.FormatTimeTag</tagclass> <bodycontent>JSP</bodycontent> <info> Formats a Date value as a time using a locale. A style (short/medium/long/full) can be specified. If the value is null then the default text is used. If no locale is specified then the parent <i18n:locale> tag is used. If no parent <i18n:locale> tag exists then the locale is taken from the current request. If still no locale could be found then the current JVM locale is used. </info> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>style</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>locale</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>defaultText</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag> </taglib> --- NEW FILE: regexp.tld --- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> <!-- a tag library descriptor --> <taglib> <!-- after this the default space is "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd" --> <!-- The version number of this tag library --> <tlibversion>1.0</tlibversion> <!-- The JSP specification version required to function --> <jspversion>1.1</jspversion> <!-- The short name of this tag library --> <shortname>regexp</shortname> <!-- Public URI that uniquely identifies this version of the tag library --> <uri>http://jakarta.apache.org/taglibs/regexp</uri> <!-- General information about this tag library --> <info> A tag library that implements perl syntax regular expressions. </info> <!-- ******************** Defined Custom Tags *************************** --> <tag> <name>regexp</name> <tagclass>org.apache.taglibs.regexp.RegexpTag</tagclass> <bodycontent>JSP</bodycontent> <info>Create a regular expression script variable.</info> <attribute> <name>id</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>text</name> <tagclass>org.apache.taglibs.regexp.TextTag</tagclass> <bodycontent>JSP</bodycontent> <info>Create a text string script variable for use with a regexp.</info> <attribute> <name>id</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>existsmatch</name> <tagclass>org.apache.taglibs.regexp.ExistsMatchTag</tagclass> <bodycontent>JSP</bodycontent> <info>Uses a regexp to determine if a match exists in the text.</info> <attribute> <name>regexp</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>text</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>value</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>substitute</name> <tagclass>org.apache.taglibs.regexp.SubstituteTag</tagclass> <bodycontent>empty</bodycontent> <info>Performs a string substitution on text using a regexp.</info> <attribute> <name>regexp</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>text</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>split</name> <tagclass>org.apache.taglibs.regexp.SplitTag</tagclass> <teiclass>org.apache.taglibs.regexp.SplitTEI</teiclass> <bodycontent>JSP</bodycontent> <info>Implements a perl style split on the text.</info> <attribute> <name>id</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>text</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>regexp</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>limit</name> <required>false</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>match</name> <tagclass>org.apache.taglibs.regexp.MatchTag</tagclass> <teiclass>org.apache.taglibs.regexp.MatchTEI</teiclass> <bodycontent>JSP</bodycontent> <info>Loops through each match found in text by a regexp.</info> <attribute> <name>id</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>regexp</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> <attribute> <name>text</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> <tag> <name>group</name> <tagclass>org.apache.taglibs.regexp.GroupTag</tagclass> <bodycontent>empty</bodycontent> <info>Get the value of a single parenthesized group within a single match.</info> <attribute> <name>number</name> <required>true</required> <rtexprvalue>false</rtexprvalue> </attribute> </tag> </taglib> --- NEW FILE: web.xml --- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <display-name>jspMyAdmin</display-name> <description>phpMyAdmin equivalent writted in jsp. Hope is usefull.</description> <context-param> <param-name>bug</param-name> <param-value>bu...@js...</param-value> <description> The EMAIL address of the administrator to whom bug errors that have been found and questions and comments about this application should be addressed. </description> </context-param> <taglib> <taglib-uri>http://jakarta.apache.org/taglibs/dbtags</taglib-uri> <taglib-location>/WEB-INF/dbtags.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://jakarta.apache.org/taglibs/i18n-1.0</taglib-uri> <taglib-location>/WEB-INF/i18n.tld</taglib-location> </taglib> <taglib> <taglib-uri>http://jakarta.apache.org/taglibs/regexp-1.0</taglib-uri> <taglib-location>/WEB-INF/regexp.tld</taglib-location> </taglib> </web-app> |