You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gerald Kleser <ge...@neofonie.de> on 2003/03/04 14:42:59 UTC

find out tag name by classname

Hi,

I wrote a taglib that is used by completly stupid users ;) For this reason 
I made a "IllegalTagNestingException", which is thrown allways, when a jsp 
contains a nesting of tags, that is not allowed, e.g.:

<aTag/>
<Tag_That_Has_To_Be_Inside_Of_An_aTag>...

would throw such an Exception. By this way the taglib-user knows a bit more 
about what he did wrong.

Well, the problem is, I dont find a way of determining the tagname by the 
classname. Inside the taglib-implementation any tag knows his class-name 
but has no idea of the assoziated tagname. How can I access the mapping 
between tagnames and classnames or how can I at least determine the filname 
of the used tld from inside the taglib-implementation (for jrun, there is a 
way over the pageContext, but in tomcat?)

thanx for any help
 Gerald Kleser

....................................................................
Gerald Kleser             neofonie GmbH        Tel: +49.30.24627-212
Softwareentwicklung       Robert-Koch-Platz 4  FAX: +49.30.24627-120
gerald@neofonie.de        D-10115 Berlin       Web: www.neofonie.de

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org