From 372f548f7fec169c94d9b004c4bfb2cdf7c9dbf0 Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Mon, 8 Mar 2004 05:13:29 +0000 Subject: [PATCH] update to older Venice sources to modernize things - revamped the build system using techniques from newer Dynamo version, allow source to compile and work using newer versions of J2SDK, Tomcat, BSF, other libraries; bugfixes to get everything running in a newer environment --- .gitignore | 2 + INSTALL | 5 +- build.bat | 30 -- build.properties.sample | 62 ++++ build.sh | 49 --- build.xml | 149 +++++++--- etc/web.xml | 18 +- lib/.gitignore | 1 + setup/database.sql | 2 +- .../util/ServletMultipartHandler.java | 29 +- .../silverwrist/util/cache/ObjectCache.java | 8 +- .../venice/db/WrappedConnection.java | 278 +++++++++++++++++- .../venice/ui/conf/jsp/PostBoxTag.java | 49 ++- .../venice/ui/conf/jsp/PostNewTopicTag.java | 4 +- .../venice/ui/conf/jsp/PostParamTag.java | 4 +- .../venice/ui/conf/jsp/PostPseudTag.java | 21 +- .../venice/ui/conf/jsp/PostTextTag.java | 37 ++- .../venice/ui/helpers/LogInOrCreate.java | 14 +- .../venice/ui/jsp/UtilFormTag.java | 12 +- .../venice/ui/jsp/UtilHeaderTag.java | 8 +- .../venice/ui/jsp/UtilHrefTag.java | 4 +- .../venice/ui/jsp/UtilImageTag.java | 6 +- .../venice/ui/jsp/UtilLinkTag.java | 12 +- .../venice/ui/jsp/UtilMenuHeaderItemTag.java | 10 +- .../venice/ui/jsp/UtilMenuHeaderTag.java | 8 +- .../venice/ui/jsp/UtilURLEncodeTag.java | 4 +- .../venice/ui/jsp/UtilXLinkTag.java | 23 +- .../venice/ui/script/ScriptLibrary.java | 14 +- .../venice/ui/script/ScriptManager.java | 4 +- .../venice/ui/servlet/GatewayServlet.java | 29 +- tlds/community-taglib.tld | 76 +++-- tlds/conference-taglib.tld | 73 +++-- tlds/frame-taglib.tld | 91 +++--- tlds/global-taglib.tld | 31 +- tlds/post-taglib.tld | 69 +++-- tlds/topic-taglib.tld | 139 +++++---- tlds/user-taglib.tld | 49 ++- tlds/utils-taglib.tld | 163 +++++----- 38 files changed, 1003 insertions(+), 584 deletions(-) create mode 100644 .gitignore delete mode 100644 build.bat create mode 100644 build.properties.sample delete mode 100755 build.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81cd42a --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build.properties + diff --git a/INSTALL b/INSTALL index baeb583..0f5e273 100644 --- a/INSTALL +++ b/INSTALL @@ -4,8 +4,7 @@ INSTALLATION INSTRUCTIONS Software requirements: You must install the following software on your system: - * Java 2 SDK version 1.3.0/1.3.1. Venice is normally run with the Blackdown - JDK port, available at http://www.blackdown.org. + * Java 2 SDK version 1.3.0 or higher. * Java API for XML Parsing (JAXP) version 1.1, available from http://java.sun.com. * Java Secure Socket Extension (JSSE) version 1.0.2, available from @@ -46,7 +45,7 @@ Software requirements: Setting Up: After extracting the source from CVS, you will need to choose your deployment directory. This will need to be specified as the "deploy.home" - property in the build.xml file. In addition, the three main Venice + property in the build.properties file. In addition, the three main Venice configuration files (logging-config.xml, render-config.xml, and venice-config.xml) are all copied to the WEB-INF subdirectory of the deployment directory, and three parameters in web.xml point to them, so diff --git a/build.bat b/build.bat deleted file mode 100644 index 3d372dc..0000000 --- a/build.bat +++ /dev/null @@ -1,30 +0,0 @@ -@echo off -: The contents of this file are subject to the Mozilla Public License Version 1.1 -: (the "License"); you may not use this file except in compliance with the License. -; You may obtain a copy of the License at . -: -: Software distributed under the License is distributed on an "AS IS" basis, WITHOUT -: WARRANTY OF ANY KIND, either express or implied. See the License for the specific -: language governing rights and limitations under the License. -: -: The Original Code is the Venice Web Community System. -; -: The Initial Developer of the Original Code is Eric J. Bowersox , -: for Silverwrist Design Studios. Portions created by Eric J. Bowersox are -: Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. -: -; Contributor(s): -: - -set _CP=%CP% - -rem Identify the custom class path components we need -set CP=%TOMCAT_HOME%\lib\ant.jar;%TOMCAT_HOME%\lib\servlet.jar -set CP=%TOMCAT_HOME%\lib\jaxp.jar;%TOMCAT_HOME%\lib\parser.jar -set CP=%CP%;%JAVA_HOME%\lib\tools.jar - -rem Execute ANT to perform the requird build target -java -classpath %CP%;%CLASSPATH% org.apache.tools.ant.Main -Dtomcat.home=%TOMCAT_HOME% %1 %2 %3 %4 %5 %6 %7 %8 %9 - -set CP=%_CP% -set _CP= diff --git a/build.properties.sample b/build.properties.sample new file mode 100644 index 0000000..b7cf3c6 --- /dev/null +++ b/build.properties.sample @@ -0,0 +1,62 @@ +# The contents of this file are subject to the Mozilla Public License Version 1.1 +# (the "License"); you may not use this file except in compliance with the License. +# You may obtain a copy of the License at . +# +# Software distributed under the License is distributed on an "AS IS" basis, WITHOUT +# WARRANTY OF ANY KIND, either express or implied. See the License for the specific +# language governing rights and limitations under the License. +# +# The Original Code is the Venice Web Communities System. +# +# The Initial Developer of the Original Code is Eric J. Bowersox , +# for Silverwrist Design Studios. Portions created by Eric J. Bowersox are +# Copyright (C) 2003-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. +# +# Contributor(s): +######################################################################################### + +# [Compilation control flags] +# compile.debug=on +# compile.deprecation=off +# compile.optimize=on +# build.compiler=modern + +# [Target directories] +deploy.home=/home/erbo/venice +# javadoc.home=${deploy.home}/javadoc + +# [Location of Servlet API 2.3] +servlet.base=/usr/local/java/jakarta-tomcat-4.1.29 +servlet.lib=${servlet.base}/common/lib +# servlet.jarfile=servlet.jar + +# [Location of Commons Collections Library 2.1] +collections.base=/usr/local/java/commons-collections-2.1 +# collections.lib=${collections.base} +# collections.jarfile=commons-collections.jar + +# [Location of Jakarta Regexp Library 1.3] +regexp.base=/usr/local/java/jakarta-regexp-1.3 +# regexp.lib=${regexp.base} +# regexp.jarfile=jakarta-regexp-1.3.jar + +# [Location of Log4J 1.2.8] +log4j.base=/usr/local/java/jakarta-log4j-1.2.8 +# log4j.lib=${log4j.base}/dist/lib +# log4j.jarfile=log4j-1.2.8.jar + +# [Location of Bean Scripting Framework 2.3] +bsf.base=/usr/local/java/bsf-2.3.0 +# bsf.lib=${bsf.base}/lib +# bsf.jarfile=bsf.jar + +# [Location of Jacl 1.3.1] +jacl.base=/usr/local/java/jacl1.3.1 +# jacl.lib=${jacl.base} +# jacl.jarfile=jacl.jar +# jacl.tcljarfile=tcljava.jar + +# [Location of Rhino 1.5R4.1] +rhino.base=/usr/local/java/rhino1_5R4_1 +# rhino.lib=${rhino.base} +# rhino.jarfile=js.jar diff --git a/build.sh b/build.sh deleted file mode 100755 index 58cacba..0000000 --- a/build.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh -# The contents of this file are subject to the Mozilla Public License Version 1.1 -# (the "License"); you may not use this file except in compliance with the License. -# You may obtain a copy of the License at . -# -# Software distributed under the License is distributed on an "AS IS" basis, WITHOUT -# WARRANTY OF ANY KIND, either express or implied. See the License for the specific -# language governing rights and limitations under the License. -# -# The Original Code is the Venice Web Community System. -# -# The Initial Developer of the Original Code is Eric J. Bowersox , -# for Silverwrist Design Studios. Portions created by Eric J. Bowersox are -# Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. -# -# Contributor(s): -# - -# Make sure the value of JAVA_HOME is set -if [ "x$JAVA_HOME" == "x" ]; then - echo "You must set the value of the JAVA_HOME environment variable." - exit 1 -fi - -# Make sure the value of TOMCAT_HOME is set -if [ "x$TOMCAT_HOME" == "x" ]; then - echo "You must set the value of the TOMCAT_HOME environment variable." - exit 1 -fi - -# Make sure we can find the JAR files we need -if [ ! -f $JAVA_HOME/lib/tools.jar ]; then - echo "Java tools JAR file (tools.jar) not found in $JAVA_HOME/lib." - exit 1 -fi -if [ ! -f $TOMCAT_HOME/lib/ant.jar ]; then - echo "Ant JAR file (ant.jar) not found in $TOMCAT_HOME/lib." - exit 1 -fi -if [ ! -f $TOMCAT_HOME/lib/servlet.jar ]; then - echo "Java Servlets JAR file (servlet.jar) not found in $TOMCAT_HOME/lib." - exit 1 -fi - -# Identify the custom class path components we need -CP=$TOMCAT_HOME/lib/ant.jar:$TOMCAT_HOME/lib/servlet.jar:$JAVA_HOME/lib/tools.jar - -# Execute ANT to perform the requested build target -java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main -Dtomcat.home=$TOMCAT_HOME "$@" diff --git a/build.xml b/build.xml index d5a8cf3..ddd1b89 100644 --- a/build.xml +++ b/build.xml @@ -8,26 +8,88 @@ WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. - The Original Code is the Venice Web Community System. + The Original Code is the Venice Web Communities System. The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + Copyright (C) 2001-04 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --> - - + - - - - - - + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -35,7 +97,11 @@ - + + @@ -48,7 +114,11 @@ - + + @@ -60,9 +130,13 @@ - - - + + + + + + + @@ -74,19 +148,16 @@ - - - - + - - - + + - - - + @@ -94,22 +165,26 @@ - + + - - + - - - - + + + + + + - - - - diff --git a/etc/web.xml b/etc/web.xml index c4a161a..d41965c 100644 --- a/etc/web.xml +++ b/etc/web.xml @@ -1,7 +1,7 @@ + PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"> @@ -172,12 +172,6 @@ /passrecovery/* - - - default.jsp - index.html - - Gateway /gw @@ -203,6 +197,12 @@ 60 + + + default.jsp + index.html + + /tlds/util diff --git a/lib/.gitignore b/lib/.gitignore index 780e3d3..ebe09ff 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -5,5 +5,6 @@ jakarta-regexp*.jar js.jar log4j.jar mysql.jar +mysql-connector-*.jar mm.mysql*.jar tcljava.jar diff --git a/setup/database.sql b/setup/database.sql index ad97bc9..e2b8179 100644 --- a/setup/database.sql +++ b/setup/database.sql @@ -441,7 +441,7 @@ GRANT ALL PRIVILEGES ON venice.* TO erbo@'10.29.99.%' IDENTIFIED BY 'meesatest' WITH GRANT OPTION; -GRANT INSERT, DELETE, UPDATE, SELECT ON venice.* +GRANT INSERT, DELETE, UPDATE, SELECT, LOCK TABLES ON venice.* TO venicedb@localhost IDENTIFIED BY 'x00yes2K'; ############################################################################## diff --git a/src/com/silverwrist/util/ServletMultipartHandler.java b/src/com/silverwrist/util/ServletMultipartHandler.java index 0f88f7c..b5cdb51 100644 --- a/src/com/silverwrist/util/ServletMultipartHandler.java +++ b/src/com/silverwrist/util/ServletMultipartHandler.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -148,6 +148,33 @@ public final class ServletMultipartHandler } // end position + public int setBytes(long pos, byte[] bytes) throws SQLException + { + return setBytes(pos,bytes,0,bytes.length); + + } // end setBytes + + public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException + { + logger.warn("setBytes() function is not implemented for MultipartDataValue"); + throw new SQLException("function not implemented"); + + } // end setBytes + + public OutputStream setBinaryStream(long pos) throws SQLException + { + logger.warn("setBinaryStream() function is not implemented for MultipartDataValue"); + throw new SQLException("function not implemented"); + + } // end setBinaryStream + + public void truncate(long len) throws SQLException + { + logger.warn("truncate() function is not implemented for MultipartDataValue"); + throw new SQLException("function not implemented"); + + } // end truncate + } // end class MultipartDataValue /*-------------------------------------------------------------------------------- diff --git a/src/com/silverwrist/util/cache/ObjectCache.java b/src/com/silverwrist/util/cache/ObjectCache.java index 0e63a4a..f6bdccb 100644 --- a/src/com/silverwrist/util/cache/ObjectCache.java +++ b/src/com/silverwrist/util/cache/ObjectCache.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -35,7 +35,7 @@ public class ObjectCache *-------------------------------------------------------------------------------- */ - private SoftRefHashMap the_data = new SoftRefHashMap(); // actual main data store + private ReferenceMap the_data = new ReferenceMap(ReferenceMap.HARD,ReferenceMap.SOFT); // actual main data store private LRUMap mru_cache; // most-recently-used map private ObjectFactory factory; // used to create new objects @@ -85,7 +85,6 @@ public class ObjectCache */ public synchronized Object get(Object key) { - the_data.purge(); Object rc = mru_cache.get(key); if (rc==null) { // retrieve from main map, poke back into cache @@ -137,7 +136,6 @@ public class ObjectCache */ public synchronized void register(Object key, Object data) { - the_data.purge(); if (the_data.get(key)!=null) throw new ObjectCacheException("object already in cache",key); the_data.put(key,data); @@ -154,7 +152,6 @@ public class ObjectCache { mru_cache.remove(key); the_data.remove(key); - the_data.purge(); } // end detach @@ -162,7 +159,6 @@ public class ObjectCache { mru_cache.clear(); the_data.clear(); - the_data.purge(); } // end shutdown diff --git a/src/com/silverwrist/venice/db/WrappedConnection.java b/src/com/silverwrist/venice/db/WrappedConnection.java index 857cbc3..dcea151 100644 --- a/src/com/silverwrist/venice/db/WrappedConnection.java +++ b/src/com/silverwrist/venice/db/WrappedConnection.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -386,7 +386,7 @@ class WrappedConnection implements Connection * this connection. The type map will be used for the * custom mapping of SQL structured types and distinct types. * - * @param the java.util.Map object to install + * @param map the java.util.Map object to install * as the replacement for this Connection * object's default type map * @since 1.2 @@ -398,8 +398,280 @@ class WrappedConnection implements Connection } // end setTypeMap + /** + * Changes the holdability of ResultSet objects created using this Connection + * object to the given holdability. + * + * @param holdability a ResultSet holdability constant; one of + * ResultSet.HOLD_CURSORS_OVER_COMMIT or + * ResultSet.CLOSE_CURSORS_AT_COMMIT + * @exception java.sql.SQLException if a database access occurs, the given parameter is not a ResultSet + * constant indicating holdability, or the given holdability is not supported + * @since 1.4 + * @see #getHoldability() + * @see java.sql.ResultSet + */ + public void setHoldability(int holdability) throws SQLException + { + conn.setHoldability(holdability); + + } // end setHoldability + + /** + * Retrieves the current holdability of ResultSet objects created using this Connection + * object. + * + * @return the holdability, one of ResultSet.HOLD_CURSORS_OVER_COMMIT or + * ResultSet.CLOSE_CURSORS_AT_COMMIT + * @exception java.sql.SQLException if a database access occurs + * @since 1.4 + * @see #setHoldability(int) + * @see java.sql.ResultSet + */ + public int getHoldability() throws SQLException + { + return conn.getHoldability(); + + } // end getHoldability + + /** + * Creates an unnamed savepoint in the current transaction and returns the new Savepoint object that + * represents it. + * + * @return the new Savepoint object + * @exception java.sql.SQLException if a database access error occurs or this Connection object is + * currently in auto-commit mode + * @since 1.4 + * @see java.sql.Savepoint + */ + public Savepoint setSavepoint() throws SQLException + { + return conn.setSavepoint(); + + } // end setSavepoint + + /** + * Creates a savepoint with the given name in the current transaction and returns the new Savepoint + * object that represents it. + * + * @param name a String containing the name of the savepoint + * @return the new Savepoint object + * @exception java.sql.SQLException if a database access error occurs or this Connection object is + * currently in auto-commit mode + * @since 1.4 + * @see java.sql.Savepoint + */ + public Savepoint setSavepoint(String name) throws SQLException + { + return conn.setSavepoint(name); + + } // end setSavepoint + + /** + * Undoes all changes made after the given Savepoint object was set.

+ * This method should be used only when auto-commit has been disabled. + * + * @param savepoint the Savepoint object to roll back to + * @exception java.sql.SQLException if a database access error occurs, the ZSavepoint object is + * no longer valid, or this Connection object is currently in auto-commit mode + * @since 1.4 + * @see java.sql.Savepoint + * @see #rollback() + */ + public void rollback(Savepoint savepoint) throws SQLException + { + conn.rollback(savepoint); + + } // end rollback + + /** + * Removes the given Savepoint object from the current transaction. Any reference to the savepoint + * after it have been removed will cause an SQLException to be thrown. + * + * @param savepoint the Savepoint object to be removed + * @exception java.sql.SQLException if a database access error occurs or the given Savepoint object + * is not a valid savepoint in the current transaction + * @since 1.4 + */ + public void releaseSavepoint(Savepoint savepoint) throws SQLException + { + conn.releaseSavepoint(savepoint); + + } // end releaseSavepoint + + /** + * Creates a Statement object that will generate ResultSet objects with the given type, + * concurrency, and holdability. This method is the same as the createStatement method above, but it + * allows the default result set type, concurrency, and holdability to be overridden. + * + * @param resultSetType one of the following ResultSet constants: + * ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, + * or ResultSet.TYPE_SCROLL_SENSITIVE + * @param resultSetConcurrency one of the following ResultSet constants: + * ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE + * @param resultSetHoldability one of the following ResultSet constants: + * ResultSet.HOLD_CURSORS_OVER_COMMIT or + * ResultSet.CLOSE_CURSORS_AT_COMMIT + * @return a new Statement object that will generate ResultSet objects with the given + * type, concurrency, and holdability + * @exception java.sql.SQLException if a database access error occurs or the given parameters are not + * ResultSet constants indicating type, concurrency, and holdability + * @since 1.4 + * @see java.sql.ResultSet + */ + public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) + throws SQLException + { + return conn.createStatement(resultSetType,resultSetConcurrency,resultSetHoldability); + + } // end createStatement + + /** + * Creates a PreparedStatement object that will generate ResultSet objects with the + * given type, concurrency, and holdability.

+ * This method is the same as the prepareStatement method above, but it allows the default result + * set type, concurrency, and holdability to be overridden. + * + * @param sql a String object that is the SQL statement to be sent to the database; may contain one + * or more ? IN parameters + * @param resultSetType one of the following ResultSet constants: + * ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, + * or ResultSet.TYPE_SCROLL_SENSITIVE + * @param resultSetConcurrency one of the following ResultSet constants: + * ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE + * @param resultSetHoldability one of the following ResultSet constants: + * ResultSet.HOLD_CURSORS_OVER_COMMIT or + * ResultSet.CLOSE_CURSORS_AT_COMMIT + * @return a new PreparedStatement object, containing the pre-compiled SQL statement, that will + * generate ResultSet objects with the given type, concurrency, and holdability + * @exception java.sql.SQLException if a database access error occurs or the given parameters are not + * ResultSet constants indicating type, concurrency, and holdability + * @since 1.4 + * @see java.sql.ResultSet + */ + public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException + { + return conn.prepareStatement(sql,resultSetType,resultSetConcurrency,resultSetHoldability); + + } // end prepareStatement + + /** + * Creates a CallableStatement object that will generate ResultSet objects with the + * given type and concurrency. This method is the same as the prepareCall method above, but it + * allows the default result set type, result set concurrency type and holdability to be overridden. + * + * @param sql a String object that is the SQL statement to be sent to the database; may contain one + * or more ? parameters + * @param resultSetType one of the following ResultSet constants: + * ResultSet.TYPE_FORWARD_ONLY, ResultSet.TYPE_SCROLL_INSENSITIVE, + * or ResultSet.TYPE_SCROLL_SENSITIVE + * @param resultSetConcurrency one of the following ResultSet constants: + * ResultSet.CONCUR_READ_ONLY or ResultSet.CONCUR_UPDATABLE + * @param resultSetHoldability one of the following ResultSet constants: + * ResultSet.HOLD_CURSORS_OVER_COMMIT or + * ResultSet.CLOSE_CURSORS_AT_COMMIT + * @return a new CallableStatement object, containing the pre-compiled SQL statement, that will + * generate ResultSet objects with the given type, concurrency, and holdability + * @exception java.sql.SQLException if a database access error occurs or the given parameters are not + * ResultSet constants indicating type, concurrency, and holdability + * @since 1.4 + * @see java.sql.ResultSet + */ + public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, + int resultSetHoldability) throws SQLException + { + return conn.prepareCall(sql,resultSetType,resultSetConcurrency,resultSetHoldability); + + } // end prepareCall + + /** + * Creates a default PreparedStatement object that has the capability to retrieve auto-generated + * keys. The given constant tells the driver whether it should make auto-generated keys available for retrieval. + * This parameter is ignored if the SQL statement is not an INSERT statement.

+ * Note: This method is optimized for handling parametric SQL statements that benefit from precompilation. + * If the driver supports precompilation, the method prepareStatement will send the statement to the + * database for precompilation. Some drivers may not support precompilation. In this case, the statement may not + * be sent to the database until the PreparedStatement object is executed. This has no direct effect + * on users; however, it does affect which methods throw certain SQLExceptions.

+ * Result sets created using the returned PreparedStatement object will by default be type + * TYPE_FORWARD_ONLY and have a concurrency level of CONCUR_READ_ONLY. + * + * @param sql an SQL statement that may contain one or more '?' IN parameter placeholders + * @param autoGeneratedKeys a flag indicating whether auto-generated keys should be returned; one of + * Statement.RETURN_GENERATED_KEYS or Statement.NO_GENERATED_KEYS + * @return a new PreparedStatement object, containing the pre-compiled SQL statement, that will + * generate ResultSet objects with the given type, concurrency, and holdability + * @exception java.sql.SQLException if a database access error occurs or the given parameter is not a + * Statement constant indicating whether auto-generated keys should be returned + * @since 1.4 + */ + public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException + { + return conn.prepareStatement(sql,autoGeneratedKeys); + + } // end prepareStatement + + /** + * Creates a default PreparedStatement object capable of returning the auto-generated keys designated + * by the given array. This array contains the indexes of the columns in the target table that contain the + * auto-generated keys that should be made available. This array is ignored if the SQL statement is not an + * INSERT statement.

+ * An SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement + * object. This object can then be used to efficiently execute this statement multiple times.

+ * Note: This method is optimized for handling parametric SQL statements that benefit from precompilation. + * If the driver supports precompilation, the method prepareStatement will send the statement to the + * database for precompilation. Some drivers may not support precompilation. In this case, the statement may not + * be sent to the database until the PreparedStatement object is executed. This has no direct effect + * on users; however, it does affect which methods throw certain SQLExceptions.

+ * Result sets created using the returned PreparedStatement object will by default be type + * TYPE_FORWARD_ONLY and have a concurrency level of CONCUR_READ_ONLY. + * + * @param sql an SQL statement that may contain one or more '?' IN parameter placeholders + * @param columnIndexes an array of column indexes indicating the columns that should be returned from the + * inserted row or rows + * @return a new PreparedStatement object, containing the pre-compiled statement, that is capable + * of returning the auto-generated keys designated by the given array of column indexes + * @exception java.sql.SQLException if a database access error occurs + * @since 1.4 + */ + public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException + { + return conn.prepareStatement(sql,columnIndexes); + + } // end prepareStatement + + /** + * Creates a default PreparedStatement object capable of returning the auto-generated keys designated + * by the given array. This array contains the names of the columns in the target table that contain the + * auto-generated keys that should be returned. This array is ignored if the SQL statement is not an + * INSERT statement.

+ * An SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement + * object. This object can then be used to efficiently execute this statement multiple times.

+ * Note: This method is optimized for handling parametric SQL statements that benefit from precompilation. + * If the driver supports precompilation, the method prepareStatement will send the statement to the + * database for precompilation. Some drivers may not support precompilation. In this case, the statement may not + * be sent to the database until the PreparedStatement object is executed. This has no direct effect + * on users; however, it does affect which methods throw certain SQLExceptions.

+ * Result sets created using the returned PreparedStatement object will by default be type + * TYPE_FORWARD_ONLY and have a concurrency level of CONCUR_READ_ONLY. + * + * @param sql an SQL statement that may contain one or more '?' IN parameter placeholders + * @param columnNames an array of column names indicating the columns that should be returned from the inserted + * row or rows + * @return a new PreparedStatement object, containing the pre-compiled statement, that is capable + * of returning the auto-generated keys designated by the given array of column names + * @exception java.sql.SQLException if a database access error occurs + * @since 1.4 + */ + public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException + { + return conn.prepareStatement(sql,columnNames); + + } // end prepareStatement + /*-------------------------------------------------------------------------------- - * Attributes + * External operations *-------------------------------------------------------------------------------- */ diff --git a/src/com/silverwrist/venice/ui/conf/jsp/PostBoxTag.java b/src/com/silverwrist/venice/ui/conf/jsp/PostBoxTag.java index 31c00cb..1fe22ec 100644 --- a/src/com/silverwrist/venice/ui/conf/jsp/PostBoxTag.java +++ b/src/com/silverwrist/venice/ui/conf/jsp/PostBoxTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -21,11 +21,19 @@ import java.io.IOException; import java.util.*; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; +import org.apache.log4j.*; import com.silverwrist.venice.ui.*; import com.silverwrist.venice.ui.helpers.HTMLRendering; public class PostBoxTag extends VeniceConfBodyTagSupport { + /*-------------------------------------------------------------------------------- + * Static data members + *-------------------------------------------------------------------------------- + */ + + private static Category logger = Category.getInstance(PostBoxTag.class); + /*-------------------------------------------------------------------------------- * Attributes *-------------------------------------------------------------------------------- @@ -52,24 +60,30 @@ public class PostBoxTag extends VeniceConfBodyTagSupport public int doStartTag() throws JspException { + if (logger.isDebugEnabled()) + logger.debug("PostBoxTag.doStartTag(): entry"); if (action==null) throw new JspTagException(" action= attribute not specified!"); HTMLRendering html = (HTMLRendering)(getRequestInput().queryService(HTMLRendering.class)); real_type = html.convertLinkType(type); if (real_type<0) throw new JspTagException(" type= attribute not a valid link type"); - return EVAL_BODY_TAG; + return EVAL_BODY_BUFFERED; } // end doStartTag public int doAfterBody() { + if (logger.isDebugEnabled()) + logger.debug("PostBoxTag.doAfterBody(): entry"); return SKIP_BODY; } // end doAfterBody public int doEndTag() throws JspException { + if (logger.isDebugEnabled()) + logger.debug("PostBoxTag.doEndTag(): entry"); if (pseud_name==null) throw new JspTagException(" tag has no tag inside it!"); if (attach_name==null) @@ -150,17 +164,10 @@ public class PostBoxTag extends VeniceConfBodyTagSupport } // end catch - return EVAL_PAGE; - - } // end doEndTag - - public void release() - { - super.release(); - action = null; - type = "servlet"; - real_type = -1; + // anything set by subtags must be cleared in doEndTag, not release params.clear(); + newtopic_name = null; + newtopic_value = null; pseud_name = null; pseud_value = null; attach_name = null; @@ -168,6 +175,18 @@ public class PostBoxTag extends VeniceConfBodyTagSupport text_name = null; text_value = null; buttons.clear(); + return EVAL_PAGE; + + } // end doEndTag + + public void release() + { + if (logger.isDebugEnabled()) + logger.debug("PostBoxTag.release(): entry"); + super.release(); + action = null; + type = "servlet"; + real_type = -1; } // end release @@ -195,6 +214,8 @@ public class PostBoxTag extends VeniceConfBodyTagSupport final void addParam(String name, String value) { + if (logger.isDebugEnabled()) + logger.debug("PostBoxTag.addParam(\"" + name + "\",\"" + value + "\") entry"); params.put(name,value); } // end addParam @@ -212,6 +233,8 @@ public class PostBoxTag extends VeniceConfBodyTagSupport final void setPseud(String param_name, String value) throws JspException { + if (logger.isDebugEnabled()) + logger.debug("PostBoxTag.setPseud(\"" + param_name + "\",\"" + value + "\") entry"); if (pseud_name!=null) throw new JspTagException(" may only appear once inside a !"); if (param_name==null) @@ -234,6 +257,8 @@ public class PostBoxTag extends VeniceConfBodyTagSupport final void setText(String param_name, String value) throws JspException { + if (logger.isDebugEnabled()) + logger.debug("PostBoxTag.setText(\"" + param_name + "\",) entry"); if (text_name!=null) throw new JspTagException(" may only appear once inside a !"); if (param_name==null) diff --git a/src/com/silverwrist/venice/ui/conf/jsp/PostNewTopicTag.java b/src/com/silverwrist/venice/ui/conf/jsp/PostNewTopicTag.java index cc45a25..d49b23f 100644 --- a/src/com/silverwrist/venice/ui/conf/jsp/PostNewTopicTag.java +++ b/src/com/silverwrist/venice/ui/conf/jsp/PostNewTopicTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -40,7 +40,7 @@ public class PostNewTopicTag extends VeniceConfBodyTagSupport { if (name==null) throw new JspTagException(" name= attribute not specified!"); - return EVAL_BODY_TAG; + return EVAL_BODY_BUFFERED; } // end doStartTag diff --git a/src/com/silverwrist/venice/ui/conf/jsp/PostParamTag.java b/src/com/silverwrist/venice/ui/conf/jsp/PostParamTag.java index 3453dcb..ad7bae3 100644 --- a/src/com/silverwrist/venice/ui/conf/jsp/PostParamTag.java +++ b/src/com/silverwrist/venice/ui/conf/jsp/PostParamTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -40,7 +40,7 @@ public class PostParamTag extends VeniceConfBodyTagSupport { if (name==null) throw new JspTagException(" name= attribute not specified!"); - return EVAL_BODY_TAG; + return EVAL_BODY_BUFFERED; } // end doStartTag diff --git a/src/com/silverwrist/venice/ui/conf/jsp/PostPseudTag.java b/src/com/silverwrist/venice/ui/conf/jsp/PostPseudTag.java index 7f0552e..eb75e45 100644 --- a/src/com/silverwrist/venice/ui/conf/jsp/PostPseudTag.java +++ b/src/com/silverwrist/venice/ui/conf/jsp/PostPseudTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -30,6 +30,7 @@ public class PostPseudTag extends VeniceConfBodyTagSupport */ private String name = null; + private String bodytext = null; /*-------------------------------------------------------------------------------- * Overrides from class BodyTagSupport @@ -40,20 +41,28 @@ public class PostPseudTag extends VeniceConfBodyTagSupport { if (name==null) throw new JspTagException(" name= attribute not specified!"); - return EVAL_BODY_TAG; + return EVAL_BODY_BUFFERED; } // end doStartTag public int doAfterBody() throws JspException { - PostBoxTag postbox = (PostBoxTag)findAncestorWithClass(this,PostBoxTag.class); - if (postbox==null) - throw new JspTagException(" tag must be within a tag!"); - postbox.setPseud(name,getBodyContent().getString()); + bodytext = getBodyContent().getString(); return SKIP_BODY; } // end doAfterBody + public int doEndTag() throws JspException + { + PostBoxTag postbox = (PostBoxTag)findAncestorWithClass(this,PostBoxTag.class); + if (postbox==null) + throw new JspTagException(" tag must be within a tag!"); + postbox.setPseud(name,bodytext); + bodytext = null; + return EVAL_PAGE; + + } // end doEndTag + public void release() { super.release(); diff --git a/src/com/silverwrist/venice/ui/conf/jsp/PostTextTag.java b/src/com/silverwrist/venice/ui/conf/jsp/PostTextTag.java index 7dc9293..0a4e19c 100644 --- a/src/com/silverwrist/venice/ui/conf/jsp/PostTextTag.java +++ b/src/com/silverwrist/venice/ui/conf/jsp/PostTextTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -20,16 +20,25 @@ package com.silverwrist.venice.ui.conf.jsp; import java.io.IOException; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; +import org.apache.log4j.*; import com.silverwrist.venice.ui.*; public class PostTextTag extends VeniceConfBodyTagSupport { + /*-------------------------------------------------------------------------------- + * Static data members + *-------------------------------------------------------------------------------- + */ + + private static Category logger = Category.getInstance(PostTextTag.class); + /*-------------------------------------------------------------------------------- * Attributes *-------------------------------------------------------------------------------- */ private String name = null; + private String bodytext = null; /*-------------------------------------------------------------------------------- * Overrides from class BodyTagSupport @@ -38,22 +47,36 @@ public class PostTextTag extends VeniceConfBodyTagSupport public int doStartTag() throws JspException { + if (logger.isDebugEnabled()) + logger.debug("PostTextTag.doStartTag(): entry"); if (name==null) throw new JspTagException(" name= attribute not specified!"); - return EVAL_BODY_TAG; + return EVAL_BODY_BUFFERED; } // end doStartTag public int doAfterBody() throws JspException { - PostBoxTag postbox = (PostBoxTag)findAncestorWithClass(this,PostBoxTag.class); - if (postbox==null) - throw new JspTagException(" tag must be within a tag!"); - postbox.setText(name,getBodyContent().getString()); + if (logger.isDebugEnabled()) + logger.debug("PostTextTag.doAfterBody(): entry"); + bodytext = getBodyContent().getString(); return SKIP_BODY; } // end doAfterBody + public int doEndTag() throws JspException + { + if (logger.isDebugEnabled()) + logger.debug("PostTextTag.doEndTag(): entry"); + PostBoxTag postbox = (PostBoxTag)findAncestorWithClass(this,PostBoxTag.class); + if (postbox==null) + throw new JspTagException(" tag must be within a tag!"); + postbox.setText(name,bodytext); + bodytext = null; + return EVAL_PAGE; + + } // end doEndTag + public void release() { super.release(); @@ -68,6 +91,8 @@ public class PostTextTag extends VeniceConfBodyTagSupport public void setName(String v) { + if (logger.isDebugEnabled()) + logger.debug("PostTextTag.setName(\"" + v + "\"): entry"); name = v; } // end setName diff --git a/src/com/silverwrist/venice/ui/helpers/LogInOrCreate.java b/src/com/silverwrist/venice/ui/helpers/LogInOrCreate.java index 996722b..2ea7b3b 100644 --- a/src/com/silverwrist/venice/ui/helpers/LogInOrCreate.java +++ b/src/com/silverwrist/venice/ui/helpers/LogInOrCreate.java @@ -11,13 +11,14 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ package com.silverwrist.venice.ui.helpers; import java.io.IOException; +import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import javax.servlet.*; import com.silverwrist.util.StringUtil; @@ -103,7 +104,16 @@ public class LogInOrCreate extends ThrowableContent implements ContentJSP public final String getTargetParam() { - return (rinput!=null) ? URLEncoder.encode(rinput.getLocation()) : null; + try + { // encode and return the location + return (rinput!=null) ? URLEncoder.encode(rinput.getLocation(),"UTF-8") : null; + + } // end try + catch (UnsupportedEncodingException e) + { // shouldn't happen + return null; + + } // end catch } // end getTargetParam diff --git a/src/com/silverwrist/venice/ui/jsp/UtilFormTag.java b/src/com/silverwrist/venice/ui/jsp/UtilFormTag.java index 7072cd5..5112378 100644 --- a/src/com/silverwrist/venice/ui/jsp/UtilFormTag.java +++ b/src/com/silverwrist/venice/ui/jsp/UtilFormTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -67,12 +67,12 @@ public class UtilFormTag extends VeniceTagSupport if (ityp==-1) throw new JspTagException(" invalid action type!"); - // Do parameter replacement on the ACTION string if necessary. - if (action.indexOf(LOCATION_PARAM)>=0) - action = StringUtil.replaceAllInstances(action,LOCATION_PARAM,URLEncoder.encode(ri.getLocation())); - try - { // write out what we came here to accomplish + { // Do parameter replacement on the ACTION string if necessary. + if (action.indexOf(LOCATION_PARAM)>=0) + action = StringUtil.replaceAllInstances(action,LOCATION_PARAM,URLEncoder.encode(ri.getLocation(),"UTF-8")); + + // write out what we came here to accomplish JspWriter out = pageContext.getOut(); out.write("

, * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -44,7 +44,7 @@ public class UtilHeaderTag extends VeniceBodyTagSupport public int doStartTag() { - return EVAL_BODY_TAG; + return EVAL_BODY_BUFFERED; } // end UtilHeaderTag @@ -87,6 +87,8 @@ public class UtilHeaderTag extends VeniceBodyTagSupport } // end catch + title = null; + subtitle = null; return EVAL_PAGE; } // end doEndTag @@ -94,9 +96,7 @@ public class UtilHeaderTag extends VeniceBodyTagSupport public void release() { super.release(); - title = null; stocktitle = null; - subtitle = null; stocksubtitle = null; } // end release diff --git a/src/com/silverwrist/venice/ui/jsp/UtilHrefTag.java b/src/com/silverwrist/venice/ui/jsp/UtilHrefTag.java index 944402a..529689f 100644 --- a/src/com/silverwrist/venice/ui/jsp/UtilHrefTag.java +++ b/src/com/silverwrist/venice/ui/jsp/UtilHrefTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -45,7 +45,7 @@ public class UtilHrefTag extends VeniceBodyTagSupport real_type = html.convertLinkType(type); if (real_type<0) throw new JspTagException(" type= attribute not a valid link type"); - return EVAL_BODY_TAG; + return EVAL_BODY_BUFFERED; } // end doStartTag diff --git a/src/com/silverwrist/venice/ui/jsp/UtilImageTag.java b/src/com/silverwrist/venice/ui/jsp/UtilImageTag.java index 7257255..226c64a 100644 --- a/src/com/silverwrist/venice/ui/jsp/UtilImageTag.java +++ b/src/com/silverwrist/venice/ui/jsp/UtilImageTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -78,7 +78,7 @@ public class UtilImageTag extends VeniceBodyTagSupport if (src==null) throw new JspTagException(" src= attribute not specified"); - return EVAL_BODY_TAG;; + return EVAL_BODY_BUFFERED; } // end doStartTag @@ -130,6 +130,7 @@ public class UtilImageTag extends VeniceBodyTagSupport } // end catch + other_alt = null; return EVAL_PAGE; } // end doEndTag @@ -143,7 +144,6 @@ public class UtilImageTag extends VeniceBodyTagSupport width = null; height = null; border = "0"; - other_alt = null; align = null; hspace = null; vspace = null; diff --git a/src/com/silverwrist/venice/ui/jsp/UtilLinkTag.java b/src/com/silverwrist/venice/ui/jsp/UtilLinkTag.java index b2d368a..236f96c 100644 --- a/src/com/silverwrist/venice/ui/jsp/UtilLinkTag.java +++ b/src/com/silverwrist/venice/ui/jsp/UtilLinkTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -65,12 +65,12 @@ public class UtilLinkTag extends VeniceTagSupport if (ityp==-1) throw new JspTagException(" invalid link type!"); - // Do parameter replacement on the HREF string if necessary. - if (href.indexOf(LOCATION_PARAM)>=0) - href = StringUtil.replaceAllInstances(href,LOCATION_PARAM,URLEncoder.encode(ri.getLocation())); - try - { // write out what we came here to accomplish + { // Do parameter replacement on the HREF string if necessary. + if (href.indexOf(LOCATION_PARAM)>=0) + href = StringUtil.replaceAllInstances(href,LOCATION_PARAM,URLEncoder.encode(ri.getLocation(),"UTF-8")); + + // write out what we came here to accomplish JspWriter out = pageContext.getOut(); out.write(", * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -45,7 +45,7 @@ public class UtilMenuHeaderItemTag extends VeniceBodyTagSupport { if ((selected!=null) && selected.equals("true")) is_selected = true; - return EVAL_BODY_TAG; + return EVAL_BODY_BUFFERED; } // end doStartTag @@ -71,6 +71,9 @@ public class UtilMenuHeaderItemTag extends VeniceBodyTagSupport if (parent==null) throw new JspTagException(" must be inside a "); parent.pushItem(href,real_type,text,is_selected); + href = null; + real_type = -1; + text = null; return EVAL_PAGE; } // end doEndTag @@ -78,11 +81,8 @@ public class UtilMenuHeaderItemTag extends VeniceBodyTagSupport public void release() { super.release(); - href = null; selected = null; - real_type = -1; is_selected = false; - text = null; } // end release diff --git a/src/com/silverwrist/venice/ui/jsp/UtilMenuHeaderTag.java b/src/com/silverwrist/venice/ui/jsp/UtilMenuHeaderTag.java index 05c6f5a..2bcbba4 100644 --- a/src/com/silverwrist/venice/ui/jsp/UtilMenuHeaderTag.java +++ b/src/com/silverwrist/venice/ui/jsp/UtilMenuHeaderTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -80,7 +80,7 @@ public class UtilMenuHeaderTag extends VeniceBodyTagSupport { if (caption==null) throw new JspTagException(" caption= attribute not specified"); - return EVAL_BODY_TAG; + return EVAL_BODY_BUFFERED; } // end doStartTag @@ -133,6 +133,8 @@ public class UtilMenuHeaderTag extends VeniceBodyTagSupport } // end catch + items.clear(); + selected_item = null; return EVAL_PAGE; } // end doEndTag @@ -141,8 +143,6 @@ public class UtilMenuHeaderTag extends VeniceBodyTagSupport { super.release(); caption = null; - items.clear(); - selected_item = null; } // end release diff --git a/src/com/silverwrist/venice/ui/jsp/UtilURLEncodeTag.java b/src/com/silverwrist/venice/ui/jsp/UtilURLEncodeTag.java index 6ff1cb3..5ae5004 100644 --- a/src/com/silverwrist/venice/ui/jsp/UtilURLEncodeTag.java +++ b/src/com/silverwrist/venice/ui/jsp/UtilURLEncodeTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -36,7 +36,7 @@ public class UtilURLEncodeTag extends VeniceBodyTagSupport try { // write the escaped information JspWriter out = body.getEnclosingWriter(); - out.write(URLEncoder.encode(body.getString())); + out.write(URLEncoder.encode(body.getString(),"UTF-8")); } // end try catch (IOException e) diff --git a/src/com/silverwrist/venice/ui/jsp/UtilXLinkTag.java b/src/com/silverwrist/venice/ui/jsp/UtilXLinkTag.java index e2d28fa..ed4b570 100644 --- a/src/com/silverwrist/venice/ui/jsp/UtilXLinkTag.java +++ b/src/com/silverwrist/venice/ui/jsp/UtilXLinkTag.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -53,7 +53,7 @@ public class UtilXLinkTag extends VeniceBodyTagSupport public int doStartTag() { - return EVAL_BODY_TAG; + return EVAL_BODY_BUFFERED; } // end doStartTag @@ -73,15 +73,16 @@ public class UtilXLinkTag extends VeniceBodyTagSupport if (text==null) throw new JspTagException(" does not have a !"); - // Do parameter replacement on the HREF string if necessary. + // Dig out the RequestInput and HTMLRendering service. RequestInput ri = getRequestInput(); - if (href.indexOf(LOCATION_PARAM)>=0) - href = StringUtil.replaceAllInstances(href,LOCATION_PARAM,URLEncoder.encode(ri.getLocation())); - HTMLRendering html = (HTMLRendering)(ri.queryService(HTMLRendering.class)); try - { // write out what we came here to accomplish + { // Do parameter replacement on the HREF string if necessary. + if (href.indexOf(LOCATION_PARAM)>=0) + href = StringUtil.replaceAllInstances(href,LOCATION_PARAM,URLEncoder.encode(ri.getLocation(),"UTF-8")); + + // write out what we came here to accomplish JspWriter out = pageContext.getOut(); out.write(", * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ package com.silverwrist.venice.ui.script; +import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.*; import org.w3c.dom.*; @@ -187,7 +188,16 @@ public class ScriptLibrary public final String encodeURL(String s) { - return URLEncoder.encode(s); + try + { // encode and return the string + return URLEncoder.encode(s,"UTF-8"); + + } // end try + catch (UnsupportedEncodingException e) + { // shouldn't happen + return s; + + } // end catch } // end encodeURL diff --git a/src/com/silverwrist/venice/ui/script/ScriptManager.java b/src/com/silverwrist/venice/ui/script/ScriptManager.java index 68b4084..e15c306 100644 --- a/src/com/silverwrist/venice/ui/script/ScriptManager.java +++ b/src/com/silverwrist/venice/ui/script/ScriptManager.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -20,7 +20,7 @@ package com.silverwrist.venice.ui.script; import java.lang.reflect.*; import java.io.*; import java.util.*; -import com.ibm.bsf.*; +import org.apache.bsf.*; import org.apache.log4j.*; import com.silverwrist.util.*; import com.silverwrist.venice.ui.*; diff --git a/src/com/silverwrist/venice/ui/servlet/GatewayServlet.java b/src/com/silverwrist/venice/ui/servlet/GatewayServlet.java index 97f5b04..293605e 100644 --- a/src/com/silverwrist/venice/ui/servlet/GatewayServlet.java +++ b/src/com/silverwrist/venice/ui/servlet/GatewayServlet.java @@ -11,7 +11,7 @@ * * The Initial Developer of the Original Code is Eric J. Bowersox , * for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - * Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + * Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. * * Contributor(s): */ @@ -43,15 +43,24 @@ public class GatewayServlet extends BaseServlet public Object process(RequestInput req) { - String target = req.getQueryString(); - if (target==null) - return new HTTPError(HttpServletResponse.SC_BAD_REQUEST,"no parameter specified"); - if (logger.isDebugEnabled()) - logger.debug("they want to redirect to: " + target); - if (req.getUser().isLoggedIn()) - return new Redirect(target,LinkTypes.ABSOLUTE); - else - return new Redirect("login.js.vs?tgt=" + URLEncoder.encode(target),LinkTypes.SERVLET); + try + { // look up the servet we wanna bounce to and try to go there + String target = req.getQueryString(); + if (target==null) + return new HTTPError(HttpServletResponse.SC_BAD_REQUEST,"no parameter specified"); + if (logger.isDebugEnabled()) + logger.debug("they want to redirect to: " + target); + if (req.getUser().isLoggedIn()) + return new Redirect(target,LinkTypes.ABSOLUTE); + else + return new Redirect("login.js.vs?tgt=" + URLEncoder.encode(target,"UTF-8"),LinkTypes.SERVLET); + + } // end try + catch (UnsupportedEncodingException e) + { // shouldn't happen + return new HTTPError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,"internal error: " + e.toString()); + + } // end catch } // end process diff --git a/tlds/community-taglib.tld b/tlds/community-taglib.tld index c603f4b..59a2e63 100644 --- a/tlds/community-taglib.tld +++ b/tlds/community-taglib.tld @@ -12,86 +12,80 @@ The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --> - - + - - - 0.1 - 1.1 - comm - - Tag library used to access various community elements. + 0.1 + 1.2 + comm + /tlds/community + Tag library used to access various community elements. name - com.silverwrist.venice.ui.jsp.CommunityNameTag - Substitutes the community name. - EMPTY + com.silverwrist.venice.ui.jsp.CommunityNameTag + empty + Substitutes the community name. ID - com.silverwrist.venice.ui.jsp.CommunityIDTag - Substitutes the community ID. - EMPTY + com.silverwrist.venice.ui.jsp.CommunityIDTag + empty + Substitutes the community ID. can_join - com.silverwrist.venice.ui.jsp.CommunityCanJoinTag - Includes its content if the user can join the community. - JSP + com.silverwrist.venice.ui.jsp.CommunityCanJoinTag + JSP + Includes its content if the user can join the community. cannot_join - com.silverwrist.venice.ui.jsp.CommunityCannotJoinTag - Includes its content if the user cannot join the community. - JSP + com.silverwrist.venice.ui.jsp.CommunityCannotJoinTag + JSP + Includes its content if the user cannot join the community. can_send_invite - com.silverwrist.venice.ui.jsp.CommunityCanSendInvitationTag - Includes its content if the user can send an invitation to join the community. - JSP + com.silverwrist.venice.ui.jsp.CommunityCanSendInvitationTag + JSP + Includes its content if the user can send an invitation to join the community. is_public - com.silverwrist.venice.ui.jsp.CommunityIsPublicTag - Includes its content if the community is a public community. - JSP + com.silverwrist.venice.ui.jsp.CommunityIsPublicTag + JSP + Includes its content if the community is a public community. is_private - com.silverwrist.venice.ui.jsp.CommunityIsPrivateTag - Includes its content if the community is a private community. - JSP + com.silverwrist.venice.ui.jsp.CommunityIsPrivateTag + JSP + Includes its content if the community is a private community. synopsis - com.silverwrist.venice.ui.jsp.CommunitySynopsisTag - Substitutes the community synopsis. - EMPTY + com.silverwrist.venice.ui.jsp.CommunitySynopsisTag + empty + Substitutes the community synopsis. alias - com.silverwrist.venice.ui.jsp.CommunityAliasTag - Substitutes the community alias. - EMPTY + com.silverwrist.venice.ui.jsp.CommunityAliasTag + empty + Substitutes the community alias. - - diff --git a/tlds/conference-taglib.tld b/tlds/conference-taglib.tld index dcd65b2..4bc2b3d 100644 --- a/tlds/conference-taglib.tld +++ b/tlds/conference-taglib.tld @@ -12,84 +12,81 @@ The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --> - - + - - 0.1 - 1.1 - conf - - Tag library used to access various conference elements. + 0.1 + 1.2 + conf + /tlds/conference + Tag library used to access various conference elements. can_manage - com.silverwrist.venice.ui.conf.jsp.ConferenceCanManageTag - Includes its content if the user can manage conferences in the current community. - JSP + com.silverwrist.venice.ui.conf.jsp.ConferenceCanManageTag + JSP + Includes its content if the user can manage conferences in the current community. can_create - com.silverwrist.venice.ui.conf.jsp.ConferenceCanCreateTag - Includes its content if the user can create conferences in the current community. - JSP + com.silverwrist.venice.ui.conf.jsp.ConferenceCanCreateTag + JSP + Includes its content if the user can create conferences in the current community. name - com.silverwrist.venice.ui.conf.jsp.ConferenceNameTag - Substitutes the conference name. - EMPTY + com.silverwrist.venice.ui.conf.jsp.ConferenceNameTag + empty + Substitutes the conference name. ID - com.silverwrist.venice.ui.conf.jsp.ConferenceIDTag - Substitutes the conference ID. - EMPTY + com.silverwrist.venice.ui.conf.jsp.ConferenceIDTag + empty + Substitutes the conference ID. can_read_new - com.silverwrist.venice.ui.conf.jsp.ConferenceCanReadNewTag - Includes its content if the user can read new messages in the current conference. - JSP + com.silverwrist.venice.ui.conf.jsp.ConferenceCanReadNewTag + JSP + Includes its content if the user can read new messages in the current conference. can_add_to_hotlist - com.silverwrist.venice.ui.conf.jsp.ConferenceCanAddToHotlistTag - Includes its content if the user can add the current conference to the hotlist. - JSP + com.silverwrist.venice.ui.conf.jsp.ConferenceCanAddToHotlistTag + JSP + Includes its content if the user can add the current conference to the hotlist. default_pseud - com.silverwrist.venice.ui.conf.jsp.ConferenceDefaultPseudTag - Substitutes the user's default pseud for the conference. - EMPTY + com.silverwrist.venice.ui.conf.jsp.ConferenceDefaultPseudTag + empty + Substitutes the user's default pseud for the conference. can_send_invite - com.silverwrist.venice.ui.conf.jsp.ConferenceCanSendInviteTag - Includes its content if the user can send an invitation for the current conference. - JSP + com.silverwrist.venice.ui.conf.jsp.ConferenceCanSendInviteTag + JSP + Includes its content if the user can send an invitation for the current conference. can_post - com.silverwrist.venice.ui.conf.jsp.ConferenceCanPostTag - Includes its content if the user can post to the current conference. - JSP + com.silverwrist.venice.ui.conf.jsp.ConferenceCanPostTag + JSP + Includes its content if the user can post to the current conference. diff --git a/tlds/frame-taglib.tld b/tlds/frame-taglib.tld index 5c896a8..2a48c42 100644 --- a/tlds/frame-taglib.tld +++ b/tlds/frame-taglib.tld @@ -12,35 +12,32 @@ The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --> - - + - - 0.1 - 1.1 - frame - - Tag library used by the frame JSP page to render portions of the UI. + 0.1 + 1.2 + frame + /tlds/frame + Tag library used by the frame JSP page to render portions of the UI. head - com.silverwrist.venice.ui.jsp.FrameHeadTag - Inserts the information inside the HEAD tag for the frame page. - EMPTY + com.silverwrist.venice.ui.jsp.FrameHeadTag + empty + Inserts the information inside the HEAD tag for the frame page. body - com.silverwrist.venice.ui.jsp.FrameBodyTag - Replaces the standard BODY tags on the frame page. - JSP + com.silverwrist.venice.ui.jsp.FrameBodyTag + JSP + Replaces the standard BODY tags on the frame page. extra false @@ -50,65 +47,65 @@ sitelogo - com.silverwrist.venice.ui.jsp.FrameSiteLogoTag - Inserts the defined site logo and any link that goes around it. - EMPTY + com.silverwrist.venice.ui.jsp.FrameSiteLogoTag + empty + Inserts the defined site logo and any link that goes around it. banner_ad - com.silverwrist.venice.ui.jsp.FrameBannerAdTag - Inserts a banner advertisement into the page. - EMPTY + com.silverwrist.venice.ui.jsp.FrameBannerAdTag + empty + Inserts a banner advertisement into the page. display_login - com.silverwrist.venice.ui.jsp.FrameDisplayLoginTag - Includes the enclosed JSP text if the "displayLogin" flag is set on the request. - JSP + com.silverwrist.venice.ui.jsp.FrameDisplayLoginTag + JSP + Includes the enclosed JSP text if the "displayLogin" flag is set on the request. no_display_login - com.silverwrist.venice.ui.jsp.FrameNoDisplayLoginTag - Includes the enclosed JSP text if the "displayLogin" flag is not set on the request. - JSP + com.silverwrist.venice.ui.jsp.FrameNoDisplayLoginTag + JSP + Includes the enclosed JSP text if the "displayLogin" flag is not set on the request. QID - com.silverwrist.venice.ui.jsp.FrameQIDTag - Inserts the QID of this page into the page. - EMPTY + com.silverwrist.venice.ui.jsp.FrameQIDTag + empty + Inserts the QID of this page into the page. if_QID - com.silverwrist.venice.ui.jsp.FrameIfQIDTag - Includes the enclosed JSP text if the current page has a QID. - JSP + com.silverwrist.venice.ui.jsp.FrameIfQIDTag + JSP + Includes the enclosed JSP text if the current page has a QID. venice_logo - com.silverwrist.venice.ui.jsp.FrameVeniceLogoTag - Inserts the Venice logo into the page. - EMPTY + com.silverwrist.venice.ui.jsp.FrameVeniceLogoTag + empty + Inserts the Venice logo into the page. content_here - com.silverwrist.venice.ui.jsp.FrameContentHereTag - Marks the point where the frame content gets inserted. - EMPTY + com.silverwrist.venice.ui.jsp.FrameContentHereTag + empty + Marks the point where the frame content gets inserted. leftmenu - com.silverwrist.venice.ui.jsp.FrameLeftMenuTag - Inserts a left menu bar menu. - EMPTY + com.silverwrist.venice.ui.jsp.FrameLeftMenuTag + empty + Inserts a left menu bar menu. name true @@ -118,9 +115,9 @@ currentmenu - com.silverwrist.venice.ui.jsp.FrameCurrentMenuTag - Inserts the current "top" menu on the left menu bar. - EMPTY + com.silverwrist.venice.ui.jsp.FrameCurrentMenuTag + empty + Inserts the current "top" menu on the left menu bar. diff --git a/tlds/global-taglib.tld b/tlds/global-taglib.tld index 7191836..040e093 100644 --- a/tlds/global-taglib.tld +++ b/tlds/global-taglib.tld @@ -12,35 +12,32 @@ The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - Copyright (C) 2002 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + Copyright (C) 2002-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --> - - + - - 0.1 - 1.1 - global - - Tag library used to access various global elements. + 0.1 + 1.2 + global + /tlds/global + Tag library used to access various global elements. categories_enabled - com.silverwrist.venice.ui.jsp.GlobalCategoriesEnabledTag - Includes its content if categories are enabled in the engine. - JSP + com.silverwrist.venice.ui.jsp.GlobalCategoriesEnabledTag + JSP + Includes its content if categories are enabled in the engine. categories_disabled - com.silverwrist.venice.ui.jsp.GlobalCategoriesDisabledTag - Includes its content if categories are disabled in the engine. - JSP + com.silverwrist.venice.ui.jsp.GlobalCategoriesDisabledTag + JSP + Includes its content if categories are disabled in the engine. diff --git a/tlds/post-taglib.tld b/tlds/post-taglib.tld index a46e80a..5b5e2c3 100644 --- a/tlds/post-taglib.tld +++ b/tlds/post-taglib.tld @@ -12,35 +12,32 @@ The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --> - - + - - 0.1 - 1.1 - post - - Tag library relating to Venice post data. + 0.1 + 1.2 + post + /tlds/post + Tag library relating to Venice post data. rewrite - com.silverwrist.venice.ui.conf.jsp.PostRewriteTag - Rewrites post data for display, resolving postlink: and userlink: URIs. - JSP + com.silverwrist.venice.ui.conf.jsp.PostRewriteTag + JSP + Rewrites post data for display, resolving postlink: and userlink: URIs. box - com.silverwrist.venice.ui.conf.jsp.PostBoxTag - Template for the post box. - JSP + com.silverwrist.venice.ui.conf.jsp.PostBoxTag + JSP + Template for the post box. action true @@ -55,9 +52,9 @@ param - com.silverwrist.venice.ui.conf.jsp.PostParamTag - Specifies a hidden parameter for the post box. - JSP + com.silverwrist.venice.ui.conf.jsp.PostParamTag + JSP + Specifies a hidden parameter for the post box. name true @@ -67,9 +64,11 @@ newtopic - com.silverwrist.venice.ui.conf.jsp.PostNewTopicTag - Specifies the name of the optional "new topic name" field of the post box, and its contents. - JSP + com.silverwrist.venice.ui.conf.jsp.PostNewTopicTag + JSP + + Specifies the name of the optional "new topic name" field of the post box, and its contents. + name true @@ -79,9 +78,9 @@ pseud - com.silverwrist.venice.ui.conf.jsp.PostPseudTag - Specifies the name of the pseud field of the post box, and its contents. - JSP + com.silverwrist.venice.ui.conf.jsp.PostPseudTag + JSP + Specifies the name of the pseud field of the post box, and its contents. name true @@ -91,9 +90,9 @@ attach - com.silverwrist.venice.ui.conf.jsp.PostAttachTag - Specifies the name of the attach checkbox of the post box, and whether it is checked. - EMPTY + com.silverwrist.venice.ui.conf.jsp.PostAttachTag + empty + Specifies the name of the attach checkbox of the post box, and whether it is checked. name true @@ -108,9 +107,9 @@ text - com.silverwrist.venice.ui.conf.jsp.PostTextTag - Specifies the name of the TEXTAREA of the post box, and its contents. - JSP + com.silverwrist.venice.ui.conf.jsp.PostTextTag + JSP + Specifies the name of the TEXTAREA of the post box, and its contents. name true @@ -120,9 +119,9 @@ button - com.silverwrist.venice.ui.conf.jsp.PostButtonTag - Inserts a standard button into the post box command buttons area. - EMPTY + com.silverwrist.venice.ui.conf.jsp.PostButtonTag + empty + Inserts a standard button into the post box command buttons area. id true diff --git a/tlds/topic-taglib.tld b/tlds/topic-taglib.tld index 966fc12..73dfd6c 100644 --- a/tlds/topic-taglib.tld +++ b/tlds/topic-taglib.tld @@ -12,161 +12,158 @@ The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --> - - + - - 0.1 - 1.1 - topic - - Tag library used to access various topic elements. + 0.1 + 1.2 + topic + /tlds/topic + Tag library used to access various topic elements. can_create - com.silverwrist.venice.ui.conf.jsp.TopicCanCreateTag - Includes its content if the user can create topics in the current conference. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicCanCreateTag + JSP + Includes its content if the user can create topics in the current conference. can_freeze - com.silverwrist.venice.ui.conf.jsp.TopicCanFreezeTag - Includes its content if the user can freeze or unfreeze the current topic. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicCanFreezeTag + JSP + Includes its content if the user can freeze or unfreeze the current topic. can_archive - com.silverwrist.venice.ui.conf.jsp.TopicCanArchiveTag - Includes its content if the user can archive or unarchive the current topic. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicCanArchiveTag + JSP + Includes its content if the user can archive or unarchive the current topic. can_delete - com.silverwrist.venice.ui.conf.jsp.TopicCanDeleteTag - Includes its content if the user can delete the current topic. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicCanDeleteTag + JSP + Includes its content if the user can delete the current topic. ID - com.silverwrist.venice.ui.conf.jsp.TopicIDTag - Substitutes the topic ID. - EMPTY + com.silverwrist.venice.ui.conf.jsp.TopicIDTag + empty + Substitutes the topic ID. number - com.silverwrist.venice.ui.conf.jsp.TopicNumberTag - Substitutes the topic number. - EMPTY + com.silverwrist.venice.ui.conf.jsp.TopicNumberTag + empty + Substitutes the topic number. name - com.silverwrist.venice.ui.conf.jsp.TopicNameTag - Substitutes the topic name. - EMPTY + com.silverwrist.venice.ui.conf.jsp.TopicNameTag + empty + Substitutes the topic name. is_archived - com.silverwrist.venice.ui.conf.jsp.TopicIsArchivedTag - Includes its content if the topic is archived. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicIsArchivedTag + JSP + Includes its content if the topic is archived. is_not_archived - com.silverwrist.venice.ui.conf.jsp.TopicIsNotArchivedTag - Includes its content if the topic is not archived. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicIsNotArchivedTag + JSP + Includes its content if the topic is not archived. is_frozen - com.silverwrist.venice.ui.conf.jsp.TopicIsFrozenTag - Includes its content if the topic is frozen. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicIsFrozenTag + JSP + Includes its content if the topic is frozen. is_not_frozen - com.silverwrist.venice.ui.conf.jsp.TopicIsNotFrozenTag - Includes its content if the topic is not frozen. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicIsNotFrozenTag + JSP + Includes its content if the topic is not frozen. is_hidden - com.silverwrist.venice.ui.conf.jsp.TopicIsHiddenTag - Includes its content if the topic is hidden. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicIsHiddenTag + JSP + Includes its content if the topic is hidden. is_not_hidden - com.silverwrist.venice.ui.conf.jsp.TopicIsNotHiddenTag - Includes its content if the topic is not hidden. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicIsNotHiddenTag + JSP + Includes its content if the topic is not hidden. last_message - com.silverwrist.venice.ui.conf.jsp.TopicLastMessageTag - Substitutes the index of the last message in the topic. - EMPTY + com.silverwrist.venice.ui.conf.jsp.TopicLastMessageTag + empty + Substitutes the index of the last message in the topic. subscribed - com.silverwrist.venice.ui.conf.jsp.TopicSubscribedTag - Includes its content if the user is subscribed to this topic. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicSubscribedTag + JSP + Includes its content if the user is subscribed to this topic. not_subscribed - com.silverwrist.venice.ui.conf.jsp.TopicNotSubscribedTag - Includes its content if the user is not subscribed to this topic. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicNotSubscribedTag + JSP + Includes its content if the user is not subscribed to this topic. can_send_invite - com.silverwrist.venice.ui.conf.jsp.TopicCanSendInvitationTag - Includes its content if the user can send an invitation to the current topic. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicCanSendInvitationTag + JSP + Includes its content if the user can send an invitation to the current topic. specified - com.silverwrist.venice.ui.conf.jsp.TopicSpecifiedTag - Includes its content if the topic was specified. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicSpecifiedTag + JSP + Includes its content if the topic was specified. not_specified - com.silverwrist.venice.ui.conf.jsp.TopicNotSpecifiedTag - Includes its content if the topic was not specified. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicNotSpecifiedTag + JSP + Includes its content if the topic was not specified. can_post - com.silverwrist.venice.ui.conf.jsp.TopicCanPostTag - Includes its content if the user can post to the current topic. - JSP + com.silverwrist.venice.ui.conf.jsp.TopicCanPostTag + JSP + Includes its content if the user can post to the current topic. diff --git a/tlds/user-taglib.tld b/tlds/user-taglib.tld index e121ac1..414151b 100644 --- a/tlds/user-taglib.tld +++ b/tlds/user-taglib.tld @@ -12,56 +12,53 @@ The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --> - - + - - 0.1 - 1.1 - user - - Tag library used to access various user elements. + 0.1 + 1.2 + user + /tlds/user + Tag library used to access various user elements. is_logged_in - com.silverwrist.venice.ui.jsp.UserIsLoggedInTag - Includes its content if the user is logged in. - JSP + com.silverwrist.venice.ui.jsp.UserIsLoggedInTag + JSP + Includes its content if the user is logged in. is_not_logged_in - com.silverwrist.venice.ui.jsp.UserIsNotLoggedInTag - Includes its content if the user is not logged in. - JSP + com.silverwrist.venice.ui.jsp.UserIsNotLoggedInTag + JSP + Includes its content if the user is not logged in. name - com.silverwrist.venice.ui.jsp.UserNameTag - Substitutes the user name. - EMPTY + com.silverwrist.venice.ui.jsp.UserNameTag + empty + Substitutes the user name. is_verified - com.silverwrist.venice.ui.jsp.UserIsVerifiedTag - Includes its content if the user's E-mail address has been verified. - JSP + com.silverwrist.venice.ui.jsp.UserIsVerifiedTag + JSP + Includes its content if the user's E-mail address has been verified. is_not_verified - com.silverwrist.venice.ui.jsp.UserIsNotVerifiedTag - Includes its content if the user's E-mail address has not been verified. - JSP + com.silverwrist.venice.ui.jsp.UserIsNotVerifiedTag + JSP + Includes its content if the user's E-mail address has not been verified. diff --git a/tlds/utils-taglib.tld b/tlds/utils-taglib.tld index fa0883c..c7ace24 100644 --- a/tlds/utils-taglib.tld +++ b/tlds/utils-taglib.tld @@ -12,35 +12,32 @@ The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --> - - + - - 0.1 - 1.1 - util - - Utility tag library for JSP renderings. + 0.1 + 1.2 + util + /tlds/util + Utility tag library for JSP renderings. comment - com.silverwrist.venice.ui.jsp.UtilCommentTag - Conditionally includes HTML comments. - JSP + com.silverwrist.venice.ui.jsp.UtilCommentTag + JSP + Conditionally includes HTML comments. color - com.silverwrist.venice.ui.jsp.UtilColorTag - References a standard color from the configuration. - EMPTY + com.silverwrist.venice.ui.jsp.UtilColorTag + empty + References a standard color from the configuration. name true @@ -50,9 +47,9 @@ font - com.silverwrist.venice.ui.jsp.UtilFontTag - Includes a standard FONT tag pair. - JSP + com.silverwrist.venice.ui.jsp.UtilFontTag + JSP + Includes a standard FONT tag pair. color false @@ -67,9 +64,9 @@ link - com.silverwrist.venice.ui.jsp.UtilLinkTag - Includes an A tag with the URL possibly modified by the system. - JSP + com.silverwrist.venice.ui.jsp.UtilLinkTag + JSP + Includes an A tag with the URL possibly modified by the system. href true @@ -99,23 +96,23 @@ escape - com.silverwrist.venice.ui.jsp.UtilEscapeTag - Escapes its content so that it's not interpreted as HTML. - JSP + com.silverwrist.venice.ui.jsp.UtilEscapeTag + JSP + Escapes its content so that it's not interpreted as HTML. urlencode - com.silverwrist.venice.ui.jsp.UtilURLEncodeTag - URL-encodes its content. - JSP + com.silverwrist.venice.ui.jsp.UtilURLEncodeTag + JSP + URL-encodes its content. stock_message - com.silverwrist.venice.ui.jsp.UtilStockMessageTag - References a stock message from the configuration file. - EMPTY + com.silverwrist.venice.ui.jsp.UtilStockMessageTag + empty + References a stock message from the configuration file. key true @@ -125,9 +122,9 @@ button - com.silverwrist.venice.ui.jsp.UtilButtonTag - Inserts a standard button graphic. - EMPTY + com.silverwrist.venice.ui.jsp.UtilButtonTag + empty + Inserts a standard button graphic. id true @@ -142,9 +139,9 @@ header - com.silverwrist.venice.ui.jsp.UtilHeaderTag - Inserts a standard content header. - JSP + com.silverwrist.venice.ui.jsp.UtilHeaderTag + JSP + Inserts a standard content header. title false @@ -169,23 +166,23 @@ title - com.silverwrist.venice.ui.jsp.UtilTitleTag - Supplies a title for the content header. - JSP + com.silverwrist.venice.ui.jsp.UtilTitleTag + JSP + Supplies a title for the content header. subtitle - com.silverwrist.venice.ui.jsp.UtilSubtitleTag - Supplies a subtitle for the content header. - JSP + com.silverwrist.venice.ui.jsp.UtilSubtitleTag + JSP + Supplies a subtitle for the content header. menuheader - com.silverwrist.venice.ui.jsp.UtilMenuHeaderTag - Demarcates a block that becomes a "menu" header. Contains util:menuheaderitem tags. - JSP + com.silverwrist.venice.ui.jsp.UtilMenuHeaderTag + JSP + Demarcates a block that becomes a "menu" header. Contains util:menuheaderitem tags. caption true @@ -195,9 +192,9 @@ menuheaderitem - com.silverwrist.venice.ui.jsp.UtilMenuHeaderItemTag - Denotes an item for a menu header. Must be contained within a util:menuheader tag. - JSP + com.silverwrist.venice.ui.jsp.UtilMenuHeaderItemTag + JSP + Denotes an item for a menu header. Must be contained within a util:menuheader tag. selected false @@ -207,9 +204,9 @@ href - com.silverwrist.venice.ui.jsp.UtilHrefTag - Supplies a HREF link and type for the util:menuheaderitem and util:xlink tags. - JSP + com.silverwrist.venice.ui.jsp.UtilHrefTag + JSP + Supplies a HREF link and type for the util:menuheaderitem and util:xlink tags. type true @@ -219,16 +216,16 @@ text - com.silverwrist.venice.ui.jsp.UtilTextTag - Supplies the text for the util:menuheaderitem and util:xlink tags. - JSP + com.silverwrist.venice.ui.jsp.UtilTextTag + JSP + Supplies the text for the util:menuheaderitem and util:xlink tags. form - com.silverwrist.venice.ui.jsp.UtilFormTag - Includes a FORM tag with the URL possibly modified by the system. - JSP + com.silverwrist.venice.ui.jsp.UtilFormTag + JSP + Includes a FORM tag with the URL possibly modified by the system. verb false @@ -258,16 +255,16 @@ stdbullet - com.silverwrist.venice.ui.jsp.UtilStdBulletTag - Inserts the standard "bullet" graphic. - EMPTY + com.silverwrist.venice.ui.jsp.UtilStdBulletTag + empty + Inserts the standard "bullet" graphic. xlink - com.silverwrist.venice.ui.jsp.UtilXLinkTag - Includes an A tag built up piecemeal with util:text and util:href. - JSP + com.silverwrist.venice.ui.jsp.UtilXLinkTag + JSP + Includes an A tag built up piecemeal with util:text and util:href. aclass false @@ -282,16 +279,16 @@ expand_servlet - com.silverwrist.venice.ui.jsp.UtilExpandServletTag - Expands the servlet address in its body into a full URL. - JSP + com.silverwrist.venice.ui.jsp.UtilExpandServletTag + JSP + Expands the servlet address in its body into a full URL. image - com.silverwrist.venice.ui.jsp.UtilImageTag - Inserts an IMG tag with its URL optionally fixed up. - JSP + com.silverwrist.venice.ui.jsp.UtilImageTag + JSP + Inserts an IMG tag with its URL optionally fixed up. src true @@ -346,30 +343,30 @@ alt - com.silverwrist.venice.ui.jsp.UtilAltTag - Supplies the ALT text for the util:image tag. - JSP + com.silverwrist.venice.ui.jsp.UtilAltTag + JSP + Supplies the ALT text for the util:image tag. linktitle - com.silverwrist.venice.ui.jsp.UtilLinkTitleTag - Supplies a title for the xlink tag. - JSP + com.silverwrist.venice.ui.jsp.UtilLinkTitleTag + JSP + Supplies a title for the xlink tag. target - com.silverwrist.venice.ui.jsp.UtilTargetTag - Supplies a target for the xlink tag. - JSP + com.silverwrist.venice.ui.jsp.UtilTargetTag + JSP + Supplies a target for the xlink tag. call_jsp - com.silverwrist.venice.ui.jsp.UtilCallJSPTag - Calls another JSP page from within this one. - EMPTY + com.silverwrist.venice.ui.jsp.UtilCallJSPTag + empty + Calls another JSP page from within this one. name true