Author: ekoneil
Date: Thu Aug 19 12:31:10 2004
New Revision: 36628

Modified:
   
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Parameter.java
Log:
Fixup the Parameter tag to work with JSP 2.0 SimpleTag parents.

Just changes a call from findAncestorWithClass to 
SimpleTagSupport.findAncestorWithClass.

BB: self
BVT: NetUI pass



Modified: 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Parameter.java
==============================================================================
--- 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Parameter.java
       (original)
+++ 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Parameter.java
       Thu Aug 19 12:31:10 2004
@@ -27,6 +27,8 @@
 
 import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.tagext.Tag;
+import javax.servlet.jsp.tagext.SimpleTagSupport;
+import javax.servlet.jsp.tagext.JspTag;
 
 /**
  * Writes a URL parameter to a URL on its parent tag.  The parent tag must 
implement URLParams.
@@ -116,7 +118,7 @@
      */
     public int doStartTag() throws JspException
     {
-        Tag parentTag = findAncestorWithClass(this,URLParams.class);
+        JspTag parentTag = 
SimpleTagSupport.findAncestorWithClass(this,URLParams.class);
         if (parentTag == null) {
             String msg = Bundle.getString("Tags_InvalidParameterParent");
             registerTagError(msg, null);

Reply via email to