• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

a qstn on tag

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
 
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic