Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TLD replated doubt

 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<taglib>
...
<tag>
<name>myTag</name>
<tag-class>MyTag</tag-class>
<tei-class>MyTagInfo</tei-class>
<body-content>JSP</body-content>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
</attribute>
</tag>
...
</taglib>


I have taken this piece of TLD file from the mock exam. They have given, this is a right answer. But I have not seen <tei-class>MyTagInfo</tei-class> element so that I did not answer this option. Is there any element like this? please clear my doubt.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From which mock exam?

I don't think TagExtraInfo is on the exam, but it is an optional element on the TLD. You can use it to point to a special class you write that will check that the user of your tag uses only valid attribute values.

More Info
 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
from the below link

http://www.javabeat.net/javabeat/scwcd/mocks/scwcd_1.4_mock_exam_questions_6.php
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic