This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes a qstn on tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "a qstn on tag" Watch "a qstn on tag" New topic
Author

a qstn on tag

tony wang
Greenhorn

Joined: Apr 13, 2002
Posts: 14
What about this question:
If the Taglibrary descriptor has the following entry for the tag in question:
<attribute>
<name>aParam</name>
<required>true</required>
</attribute>
And the tag is used as follows:
<m:aTag />
What happens?
A Error complains that the attribute is mandatory
B Page compiles but is blank
C Page compiles and the tag is omitted
D None of the above
Answer is A.
Checked in jsp spec: require subelement is about "The value of the required element indicates if the nesting attribute is required or optional." But I don't think it's the reason


SCJP,SCWCD
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
<required> ..this elemet can be optional but once the value of the element is "true" then the tag must have the attribute. thats why option A is correct
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: a qstn on tag
 
Similar Threads
taglib question
Problem while Tag lib Up gradation
displat:table tag pls help me
MockExam doubt
mention tld file in jsp