cmlenz 01/09/29 06:12:52
Modified: src/doc struts-taglib.xml
src/taglib slide-struts.tld
Added: src/taglib/struts/org/apache/slide/taglib/tag/struts
DomainTei.java NamespaceTei.java NodeTei.java
PropertyTei.java RevisionTei.java
Log:
Implement the exposure of scripting variables
Revision Changes Path
1.5 +23 -2 jakarta-slide/src/doc/struts-taglib.xml
Index: struts-taglib.xml
===================================================================
RCS file: /home/cvs/jakarta-slide/src/doc/struts-taglib.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- struts-taglib.xml 2001/09/27 15:32:38 1.4
+++ struts-taglib.xml 2001/09/29 13:12:52 1.5
@@ -24,8 +24,8 @@
<info>
<p>
The Slide Tag Library for Struts provides many tags for building a
- web interface to Slide. These tags are designed to cooperate with
- the Struts tag library and application framework.
+ web interface to Slide. These tags are designed to integrate well
+ with the Struts tag library and application framework.
</p>
<p>
For more information on Struts see the
@@ -46,6 +46,9 @@
<tagclass>
org.apache.slide.taglib.tag.struts.DomainTag
</tagclass>
+ <teiclass>
+ org.apache.slide.taglib.tag.struts.DomainTei
+ </teiclass>
<bodycontent>JSP</bodycontent>
<info>
<p>
@@ -98,6 +101,9 @@
<tagclass>
org.apache.slide.taglib.tag.struts.NamespaceTag
</tagclass>
+ <teiclass>
+ org.apache.slide.taglib.tag.struts.NamespaceTei
+ </teiclass>
<bodycontent>JSP</bodycontent>
<info>
<p>
@@ -149,6 +155,9 @@
<tagclass>
org.apache.slide.taglib.tag.struts.NodeTag
</tagclass>
+ <teiclass>
+ org.apache.slide.taglib.tag.struts.NodeTei
+ </teiclass>
<bodycontent>JSP</bodycontent>
<info>
<p>
@@ -263,6 +272,9 @@
<tagclass>
org.apache.slide.taglib.tag.struts.RevisionTag
</tagclass>
+ <teiclass>
+ org.apache.slide.taglib.tag.struts.RevisionTei
+ </teiclass>
<bodycontent>JSP</bodycontent>
<info>
<p>
@@ -330,6 +342,9 @@
<tagclass>
org.apache.slide.taglib.tag.struts.PropertyTag
</tagclass>
+ <teiclass>
+ org.apache.slide.taglib.tag.struts.PropertyTei
+ </teiclass>
<bodycontent>JSP</bodycontent>
<info>
<p>
@@ -396,6 +411,9 @@
<tagclass>
org.apache.slide.taglib.tag.struts.IterateLocksTag
</tagclass>
+ <teiclass>
+ org.apache.struts.taglib.logic.IterateTei
+ </teiclass>
<bodycontent>JSP</bodycontent>
<info>
<p>
@@ -509,6 +527,9 @@
<tagclass>
org.apache.slide.taglib.tag.struts.IterateMembersTag
</tagclass>
+ <teiclass>
+ org.apache.struts.taglib.logic.IterateTei
+ </teiclass>
<bodycontent>JSP</bodycontent>
<info>
<p>
1.4 +7 -0 jakarta-slide/src/taglib/slide-struts.tld
Index: slide-struts.tld
===================================================================
RCS file: /home/cvs/jakarta-slide/src/taglib/slide-struts.tld,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- slide-struts.tld 2001/09/24 20:23:50 1.3
+++ slide-struts.tld 2001/09/29 13:12:52 1.4
@@ -17,6 +17,7 @@
<tag>
<name>domain</name>
<tagclass>org.apache.slide.taglib.tag.struts.DomainTag</tagclass>
+ <teiclass>org.apache.slide.taglib.tag.struts.DomainTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>id</name>
@@ -28,6 +29,7 @@
<tag>
<name>namespace</name>
<tagclass>org.apache.slide.taglib.tag.struts.NamespaceTag</tagclass>
+ <teiclass>org.apache.slide.taglib.tag.struts.NamespaceTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>name</name>
@@ -45,6 +47,7 @@
<tag>
<name>node</name>
<tagclass>org.apache.slide.taglib.tag.struts.NodeTag</tagclass>
+ <teiclass>org.apache.slide.taglib.tag.struts.NodeTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>uri</name>
@@ -66,6 +69,7 @@
<tag>
<name>revision</name>
<tagclass>org.apache.slide.taglib.tag.struts.RevisionTag</tagclass>
+ <teiclass>org.apache.slide.taglib.tag.struts.RevisionTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>number</name>
@@ -87,6 +91,7 @@
<tag>
<name>property</name>
<tagclass>org.apache.slide.taglib.tag.struts.PropertyTag</tagclass>
+ <teiclass>org.apache.slide.taglib.tag.struts.PropertyTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>namespace</name>
@@ -112,6 +117,7 @@
<tag>
<name>iterateLocks</name>
<tagclass>org.apache.slide.taglib.tag.struts.IterateLocksTag</tagclass>
+ <teiclass>org.apache.struts.taglib.logic.IterateTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>depth</name>
@@ -164,6 +170,7 @@
<tag>
<name>iterateMembers</name>
<tagclass>org.apache.slide.taglib.tag.struts.IterateMembersTag</tagclass>
+ <teiclass>org.apache.struts.taglib.logic.IterateTei</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>depth</name>
1.1
jakarta-slide/src/taglib/struts/org/apache/slide/taglib/tag/struts/DomainTei.java
Index: DomainTei.java
===================================================================
/*
* $Header:
/home/cvs/jakarta-slide/src/taglib/struts/org/apache/slide/taglib/tag/struts/DomainTei.java,v
1.1 2001/09/29 13:12:52 cmlenz Exp $
* $Revision: 1.1 $
* $Date: 2001/09/29 13:12:52 $
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
* [Additional notices, if required by prior licensing conditions]
*
*/
package org.apache.slide.taglib.tag.struts;
import javax.servlet.jsp.tagext.TagData;
import javax.servlet.jsp.tagext.TagExtraInfo;
import javax.servlet.jsp.tagext.VariableInfo;
import org.apache.slide.taglib.bean.DomainBean;
/**
* Implementation of <code>TagExtraInfo</code> for the <b>domain</b> tag,
* identifying the scripting object(s) to be made visible.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Christopher Lenz</a>
* @version $Revision: 1.1 $
*/
public class DomainTei
extends TagExtraInfo {
// --------------------------------------------------- TagExtraInfo Methods
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
return new VariableInfo[] {
new VariableInfo(data.getAttributeString("id"),
DomainBean.class.getName(), true,
VariableInfo.NESTED)
};
}
}
1.1
jakarta-slide/src/taglib/struts/org/apache/slide/taglib/tag/struts/NamespaceTei.java
Index: NamespaceTei.java
===================================================================
/*
* $Header:
/home/cvs/jakarta-slide/src/taglib/struts/org/apache/slide/taglib/tag/struts/NamespaceTei.java,v
1.1 2001/09/29 13:12:52 cmlenz Exp $
* $Revision: 1.1 $
* $Date: 2001/09/29 13:12:52 $
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
* [Additional notices, if required by prior licensing conditions]
*
*/
package org.apache.slide.taglib.tag.struts;
import javax.servlet.jsp.tagext.TagData;
import javax.servlet.jsp.tagext.TagExtraInfo;
import javax.servlet.jsp.tagext.VariableInfo;
import org.apache.slide.taglib.bean.NamespaceBean;
/**
* Implementation of <code>TagExtraInfo</code> for the <b>namespace</b> tag,
* identifying the scripting object(s) to be made visible.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Christopher Lenz</a>
* @version $Revision: 1.1 $
*/
public class NamespaceTei
extends TagExtraInfo {
// --------------------------------------------------- TagExtraInfo Methods
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
String id = data.getAttributeString("id");
if (id != null) {
return new VariableInfo[] {
new VariableInfo(id, NamespaceBean.class.getName(), true,
VariableInfo.NESTED)
};
} else {
return new VariableInfo[0];
}
}
}
1.1
jakarta-slide/src/taglib/struts/org/apache/slide/taglib/tag/struts/NodeTei.java
Index: NodeTei.java
===================================================================
/*
* $Header:
/home/cvs/jakarta-slide/src/taglib/struts/org/apache/slide/taglib/tag/struts/NodeTei.java,v
1.1 2001/09/29 13:12:52 cmlenz Exp $
* $Revision: 1.1 $
* $Date: 2001/09/29 13:12:52 $
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
* [Additional notices, if required by prior licensing conditions]
*
*/
package org.apache.slide.taglib.tag.struts;
import javax.servlet.jsp.tagext.TagData;
import javax.servlet.jsp.tagext.TagExtraInfo;
import javax.servlet.jsp.tagext.VariableInfo;
import org.apache.slide.taglib.bean.NodeBean;
/**
* Implementation of <code>TagExtraInfo</code> for the <b>node</b> tag,
* identifying the scripting object(s) to be made visible.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Christopher Lenz</a>
* @version $Revision: 1.1 $
*/
public class NodeTei
extends TagExtraInfo {
// --------------------------------------------------- TagExtraInfo Methods
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
String id = data.getAttributeString("id");
if (id != null) {
return new VariableInfo[] {
new VariableInfo(id, NodeBean.class.getName(), true,
VariableInfo.NESTED)
};
} else {
return new VariableInfo[0];
}
}
}
1.1
jakarta-slide/src/taglib/struts/org/apache/slide/taglib/tag/struts/PropertyTei.java
Index: PropertyTei.java
===================================================================
/*
* $Header:
/home/cvs/jakarta-slide/src/taglib/struts/org/apache/slide/taglib/tag/struts/PropertyTei.java,v
1.1 2001/09/29 13:12:52 cmlenz Exp $
* $Revision: 1.1 $
* $Date: 2001/09/29 13:12:52 $
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
* [Additional notices, if required by prior licensing conditions]
*
*/
package org.apache.slide.taglib.tag.struts;
import javax.servlet.jsp.tagext.TagData;
import javax.servlet.jsp.tagext.TagExtraInfo;
import javax.servlet.jsp.tagext.VariableInfo;
import org.apache.slide.taglib.bean.PropertyBean;
/**
* Implementation of <code>TagExtraInfo</code> for the <b>property</b> tag,
* identifying the scripting object(s) to be made visible.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Christopher Lenz</a>
* @version $Revision: 1.1 $
*/
public class PropertyTei
extends TagExtraInfo {
// --------------------------------------------------- TagExtraInfo Methods
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
String id = data.getAttributeString("id");
if (id != null) {
return new VariableInfo[] {
new VariableInfo(id, PropertyBean.class.getName(), true,
VariableInfo.NESTED)
};
} else {
return new VariableInfo[0];
}
}
}
1.1
jakarta-slide/src/taglib/struts/org/apache/slide/taglib/tag/struts/RevisionTei.java
Index: RevisionTei.java
===================================================================
/*
* $Header:
/home/cvs/jakarta-slide/src/taglib/struts/org/apache/slide/taglib/tag/struts/RevisionTei.java,v
1.1 2001/09/29 13:12:52 cmlenz Exp $
* $Revision: 1.1 $
* $Date: 2001/09/29 13:12:52 $
*
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
* [Additional notices, if required by prior licensing conditions]
*
*/
package org.apache.slide.taglib.tag.struts;
import javax.servlet.jsp.tagext.TagData;
import javax.servlet.jsp.tagext.TagExtraInfo;
import javax.servlet.jsp.tagext.VariableInfo;
import org.apache.slide.taglib.bean.RevisionBean;
/**
* Implementation of <code>TagExtraInfo</code> for the <b>revision</b> tag,
* identifying the scripting object(s) to be made visible.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Christopher Lenz</a>
* @version $Revision: 1.1 $
*/
public class RevisionTei
extends TagExtraInfo {
// --------------------------------------------------- TagExtraInfo Methods
/**
* Return information about the scripting variables to be created.
*/
public VariableInfo[] getVariableInfo(TagData data) {
String id = data.getAttributeString("id");
if (id != null) {
return new VariableInfo[] {
new VariableInfo(id, RevisionBean.class.getName(), true,
VariableInfo.NESTED)
};
} else {
return new VariableInfo[0];
}
}
}