• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

tags question

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this i got from enthuware

Question 58 of 60
Consider the following taglibrary descriptor element:

<tag>
<name>DBViewer</name>
<tag-class>com.abc.DatabaseViewer</tag-class>
<body-content>tagdependent</body-content>
</tag>
Which of the following are valid uses of this tag in a jsp page?
(Assume that the prefix for the tag library is 'dbtools'.)



Select 2 correct options
a <dbtools:dBViewer>select * from users where name='Bill'</dbtools:dBViewer>
b <dbtools:dBViewer>name="Jack"></dbtools:dBViewer</dbtools:dBViewer>
c <dbtools:dBViewer name="Jack"/>select * from account</dbtools:dBViewer>
d <dbtools:dBViewer></dbtools:dBViewer>
e <dbtools:dBViewer>select * from account</dbtools:dBViewer>;

Answer is ae

but why d is incorrect, we can have empty tag even if body-content value is not empty

thanks,
geeta

 
Ranch Hand
Posts: 437
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Geeta. Here name of the tag is 'DBViewer', the tag invokation is like this
If tag invokation is like that, option D is correct.
 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi chinmaya..

yes its like that only(the way in which you specified) only I changed "" to :d since that symbol was giving smiling face like .

thanks
geeta
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

since that symbol was giving smiling face


When posting, you can click "Disable smilies in this message" to avoid this problem
 
What's a year in metric? Do you know this metric stuff tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic