Yep,

I have done the extend trick, but even so the http tags for Latka could 
easily be a single class if they could just get hold of their element name 
:)
--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers


"James Strachan" <[EMAIL PROTECTED]> wrote on 07/08/2002 08:06:16 
PM:

> 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]>
> 

Reply via email to