Hi All,

I am playing around with Custom Tags. I have a Table Tag that extends a
FieldTag. Compiling the FieldTag works fine, however, everytime I compile
the TableTag, I keep getting the following:-

Superclass com.jcs.db.dbase.FieldTag of class com.jcs.db.dbase.TableTag not
found.
public class TableTag extends FieldTag {
                              ^
1 error

I know I am doing something wrong somewhere, but I just can't figure out
what. Can anyone kindly advice? My code follows below.

Thank you in Advance.
Dinesh, S.



FieldTag.java
----------------------------------------------------------------------------
----
package com.jcs.db.dbase;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.*;

public class FieldTag extends TagSupport {
  private String _name = null;

  public void setName(String name)

    _name = name;
  }
  public String getName()

    return _name;
  }
  public int doStartTag() throws
ax.servlet.jsp.JspTagException{
    return EVAL_BODY_INCLUDE;
  }
  public void release() {
    _name = null;
  }
}
--------------------------------------------------------------------------------

TableTag.java
--------------------------------------------------------------------------------
package com.jcs.db.dbase;
public class TableTag extends FieldTag {
  public TableTag() {
    setName("Hello");
  }
}
--------------------------------------------------------------------------------

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to