From: <[EMAIL PROTECTED]>
> Is there some way for a tag to discover it's element name? I have a case
> where I'd like to register a tag under two names and have very slightly
> different behaviour in each case....
How about using a different classes and derivation?
public class MyTag extends TagSupport {
...
}
public class MyOtherTag extends MyTag {
...
}
public class MyTagLibrary extends TagLibrary {
public MyTagLibrary() {
registerTag("a", MyTag.class);
registerTag("b", MyOtherTag.class);
}
}
Or you could implement your own TagScript implementation to have some kind
of 'meta tag' that knows about its name. Though the above is probably the
easiest.
James
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>