Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

tags question

 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
    Bookmark Topic Watch Topic
  • New Topic