martinc 01/09/23 11:48:49
Modified: doc Tag: STRUTS_1_0_BRANCH struts-html.xml
src/share/org/apache/struts/taglib/html Tag:
STRUTS_1_0_BRANCH ImageTag.java
Log:
Port fix to Struts 1.0 branch.
PR: 3288
Submitted by: Misak Boulatian
Revision Changes Path
No revision
No revision
1.11.2.5 +9 -0 jakarta-struts/doc/struts-html.xml
Index: struts-html.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/doc/struts-html.xml,v
retrieving revision 1.11.2.4
retrieving revision 1.11.2.5
diff -u -r1.11.2.4 -r1.11.2.5
--- struts-html.xml 2001/09/15 05:30:47 1.11.2.4
+++ struts-html.xml 2001/09/23 18:48:48 1.11.2.5
@@ -1416,6 +1416,15 @@
</attribute>
<attribute>
+ <name>align</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <info>
+ <p>The alignment option for this image.</p>
+ </info>
+ </attribute>
+
+ <attribute>
<name>alt</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
No revision
No revision
1.8.2.1 +23 -4
jakarta-struts/src/share/org/apache/struts/taglib/html/ImageTag.java
Index: ImageTag.java
===================================================================
RCS file:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/ImageTag.java,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -u -r1.8 -r1.8.2.1
--- ImageTag.java 2001/04/19 21:09:30 1.8
+++ ImageTag.java 2001/09/23 18:48:49 1.8.2.1
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/ImageTag.java,v 1.8
2001/04/19 21:09:30 craigmcc Exp $
- * $Revision: 1.8 $
- * $Date: 2001/04/19 21:09:30 $
+ * $Header:
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/ImageTag.java,v
1.8.2.1 2001/09/23 18:48:49 martinc Exp $
+ * $Revision: 1.8.2.1 $
+ * $Date: 2001/09/23 18:48:49 $
*
* ====================================================================
*
@@ -81,7 +81,7 @@
* Tag for input fields of type "image".
*
* @author Oleg V Alexeev
- * @version $Revision: 1.8 $ $Date: 2001/04/19 21:09:30 $
+ * @version $Revision: 1.8.2.1 $ $Date: 2001/09/23 18:48:49 $
*/
public class ImageTag extends SubmitTag {
@@ -89,7 +89,21 @@
// ----------------------------------------------------- Instance Variables
+
+ /**
+ * The alignment for this image.
+ */
+ protected String align = null;
+
+ public String getAlign() {
+ return (this.align);
+ }
+ public void setAlign(String align) {
+ this.align = align;
+ }
+
+
/**
* The default Locale for our server.
*/
@@ -280,6 +294,11 @@
if (tmp != null) {
results.append(" alt=\"");
results.append(tmp);
+ results.append("\"");
+ }
+ if (align != null) {
+ results.append(" align=\"");
+ results.append(align);
results.append("\"");
}
if (border != null) {