• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Correct DTD for Tag Library for exam

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just noticed the difference in the element formation between the 1.1 and the 1.2 DTD for Tag Library Descriptors (tlibversion (1.1) vs tlib-version (1.2) etc.).
I would assume that the correct version to use is 1.2 DTD, but I cannot be sure from reading the exam requirements. Most of the study notes and books use the old version.
Could someone please let me know which one to study.
Thanks,
Clark
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, go to the links link above, and download ersin's DTD guide. It has the correct tags, and in the order, and in a visual way to make it easier to memorize.
Mark
 
Clark Bruce
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Mark
Regards,
Clark
 
Clark Bruce
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mark,
I just reviewed Ersin's info. It great! However, unless I'm missing something, it seems to be for setting up the web.xml Deployment Description.
What I am asking about is the DTD to set up the .tld file for a custom tag library.
Has the exam been updated to use the new hyphenated tags in the 1.2 DTD?
Regards,
Clark
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, the custom tag library. You do need to know that one too. Actually we are lucky that is it short.
I know I pretty much learned it from the notes. Like Ken's or someone elses.
Let's see you have the Tag tag, and underneath that you have the attribute tag that has some child tags. The attribut child tags are <rtexprvalue> for saying whether this attribute can be determined at run-time. <required> states that it must be in there.
<body-content> states what would be the acceptable stuff in between the tag. the default is JSP.
There really isn't much more that you really need for the exam. Well that's based on the questions I received.
Good Luck
Mark
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The dtd for the taglib is on page 237 of the JSP1.2 Specs. You can also download it. Both links are available from the links page.
 
Clark Bruce
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys.
Regards,
Clark
 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Carl Trusiak:
The dtd for the taglib is on page 237 of the JSP1.2 Specs.


Actually p.237 is the DTD for JSP 1.1 TLD (the one for 1.2 is on p.225). However, it does say something important, it starts:


This appendix includes the DTD for a tag library descriptor using JSP 1.1.
All JSP 1.2 containers are required to accept such a TLD.


So, I guess that unless you get a question which explicitly mentions 1.1 or 1.2 (or refers to a particular DTD) then either version should be acceptable :-)
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually p.237 is the DTD for JSP 1.1 TLD (the one for 1.2 is on p.225). However, it does say something important, it starts:
My copy does show Tags specs according to 1.2 on page 237. If it helps, the title on that page says:
"APPENDIX JSP.C DTD for TagLibrary Descriptor, JSP 1.2" :roll:
You might want to check what version of Specs you have.
- satya
 
Tim Duncan
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Madhav Lakkapragada:
My copy does show Tags specs according to 1.2 on page 237.


Ok, to be precise ... the page which has "225" printed on it, and which Acrobat refers to as page 237 ...
Anyway, point is that the 1.2 spec mandates that containers must accept 1.1 and 1.2 versions of the DTD.
 
Skool. Stay in. Smartness. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic