Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calrification on Question no 8

 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Eduardo Cobian and question no 8
It says correct answer r 1 2 3 and 4 too.But if we refer to Mitif khan notes (ava. at http://www.javaranch.com/carl/scwcd/jsp_study_guide.rtf)it says
<taglib> mandatory
<tlibversion>1.0</tlibversion>mandatory
<jspversion>1.1</jspversion>optional; default is 1.1
<shortname>test</shortname> mandatory
<uri>/testlib</uri> optional
<info> my very first tag library </info>optional;
and then rest of tag info comes .....
</taglib>
Point is Eudo says all tlib-version,jsp-version,short-name, tag
The after reading this got confused...can any one put some light on this....
 
Tim Duncan
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've not looked at Eduardo's questions yet, but you can find which parts of the TLD are required or optional by looking at the DTD for it, here: http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
The core is: <!ELEMENT taglib (tlib-version, jsp-version, short-name, uri?,
display-name?, small-icon?, large-icon?, description?,
validator?, listener*, tag+) >

If there is a "?" then the element is optional, if there is a "*" then there may be zero or more. If the element is not otherwise qualified (eg: tlib-version, jsp-version, short-name) then it is mandatory.
Hope this answers your question ...

 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That means some problem in Mitaf khan notes...
La la we have to be careful while reading then that means..
Thanks for the answer.
[This message has been edited by james edwin (edited November 29, 2001).]
 
Tim Duncan
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Miftah's notes were based on JSP 1.1 ... you'll note that he uses "jspversion" whereas in JSP1.2 this is "jsp-version".

 
james edwin
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup,
I argee.Thanks for the clarification.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic