• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tags question

 
geeta vemula
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

 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • 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
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic