dgraham 2003/08/06 17:48:59
Modified: src/share/org/apache/struts/taglib/html BaseHandlerTag.java
Log:
Use accessor methods for PR# 19420. Also, deprecated defaultLocale because
it was never used.
Revision Changes Path
1.33 +13 -12
jakarta-struts/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java
Index: BaseHandlerTag.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/BaseHandlerTag.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- BaseHandlerTag.java 27 Jul 2003 07:13:04 -0000 1.32
+++ BaseHandlerTag.java 7 Aug 2003 00:48:59 -0000 1.33
@@ -98,6 +98,7 @@
/**
* The default Locale for our server.
+ * @deprecated Use Locale.getDefault() directly.
*/
protected static final Locale defaultLocale = Locale.getDefault();
@@ -118,8 +119,8 @@
// Indexing ability for Iterate
/** Whether to created indexed names for fields
- * @since Struts 1.1
- */
+ * @since Struts 1.1
+ */
protected boolean indexed = false;
// Mouse Events
@@ -236,15 +237,15 @@
// Indexing ability for Iterate [since Struts 1.1]
/** Sets the indexed value.
- * @since Struts 1.1
- */
+ * @since Struts 1.1
+ */
public void setIndexed(boolean indexed) {
this.indexed = indexed;
}
/** Returns the indexed value.
- * @since Struts 1.1
- */
+ * @since Struts 1.1
+ */
public boolean getIndexed() {
return (this.indexed);
}
@@ -719,13 +720,13 @@
styles.append(getStyleId());
styles.append("\"");
}
- value = message(title, titleKey);
+ value = message(this.getTitle(), this.getTitleKey());
if (value != null) {
styles.append(" title=\"");
styles.append(value);
styles.append("\"");
}
- value = message(alt, altKey);
+ value = message(this.getAlt(), this.getAltKey());
if (value != null) {
styles.append(" alt=\"");
styles.append(value);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]