husted 2004/02/18 18:43:14 Modified: doc/userGuide struts-html.xml src/share/org/apache/struts/taglib/html ImgTag.java Log: Deprecate contextRelative attribute/property in img tag. Revision Changes Path 1.76 +1 -0 jakarta-struts/doc/userGuide/struts-html.xml Index: struts-html.xml =================================================================== RCS file: /home/cvs/jakarta-struts/doc/userGuide/struts-html.xml,v retrieving revision 1.75 retrieving revision 1.76 diff -u -r1.75 -r1.76 --- struts-html.xml 13 Feb 2004 11:07:54 -0000 1.75 +++ struts-html.xml 19 Feb 2004 02:43:14 -0000 1.76 @@ -2812,6 +2812,7 @@ <name>contextRelative</name> <required>false</required> <rtexprvalue>true</rtexprvalue> + <deprecated>Use module attribute instead; will be removed in a release afer 1.2.0.</deprecated> <info> <p>If set to "true", this "anchors" the image src at the application context rather than the module context when the 1.39 +10 -4 jakarta-struts/src/share/org/apache/struts/taglib/html/ImgTag.java Index: ImgTag.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/ImgTag.java,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- ImgTag.java 7 Feb 2004 15:55:02 -0000 1.38 +++ ImgTag.java 19 Feb 2004 02:43:14 -0000 1.39 @@ -121,13 +121,18 @@ * rooted to the application context path * If 'false' or absent the image is rooted to the current * module's context path. + * @deprecated Use module property instead; will be removed in a release after 1.2.0. */ protected String contextRelative = null; + /** @deprecated Use module property instead; will be removed in a release after 1.2.0. + */ public String getContextRelative() { return (this.contextRelative); } + /** @deprecated Use module property instead; will be removed in a release after 1.2.0. + */ public void setContextRelative(String contextRelative) { this.contextRelative = contextRelative; } @@ -136,6 +141,7 @@ /** * Convenience method to return true if contextRelative set to "true". * @return True if contextRelative set to "true" + * @deprecated Use module property instead; will be removed in a release after 1.2.0. */ public boolean isContextRelativeSet() { return Boolean.valueOf(this.contextRelative).booleanValue();
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]