• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubts on Custom Tag TLD

 
Chandra Sekhar
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please calrify my doubts

(1)In http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
the 'taglib' element XML descrpition is given as

<!ELEMENT taglib (tlib-version, jsp-version, short-name,
uri?, display-name?, small-icon?, large-icon?,
description?, validator?, listener*, tag+) >

Here short-name is mandatory,but my TLD works with out that.Is
short-name attribute not mandatory?

(2) As per the 'tag' element description

<!ELEMENT tag (name, tag-class, tei-class?, body-content?,
display-name?, small-icon?, large-icon?,
description?, variable*, attribute*, example?) >

the element name is tag-class & body-content, but
tagclass,bodycontent (with out hyphen) also works.I'm sure something really wrong in my understanding as i'm not good in XML.
(i'm working in Tomcat 5).Please clarify my doubts.


Thanks In Advance
Chandra
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that it is to support older version (JSP1.1) where there was no hyphen.
 
Chandra Sekhar
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Satou kurinosuke:
I think that it is to support older version (JSP1.1) where there was no hyphen.


Thanks for your reply.

What abt short-name ,thats also optional now in 1.2 rght?

thanks again
Chandra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic