Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

query

 
geet rahane
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question from jwebplus as.....

Consider the following description of a tag in a TLD:


Which of the following statements regarding the above tag are correct?

a It is an empty tag.

b It may be used as an empty tag.

c It must have a body.

d It must implement BodyTag interface.


e It may take an attribute named 'name'. But if present, its value must be dynamic.


correct answer is d; explanation given for it is"Since the body-content is tagdependent, it must implement the BodyTag interface."
is this the necessary condition for such tag whose body-content is tagdependent...???

please help..

 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds very twisted ... A body-content of tagdependent might well be implemented as a SimpleTag. The only restriction simple tag has is that it does not support JSP as a body content.
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not getting why option d is correct
 
geeta vemula
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the answer would be b. Lets see what others say!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

A title such as "query" is not helpful. What would happen if all posts had such a title?

Please go back and change your post to add a more meaningful subject by clicking the button on your post.
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can anybody explain why option d is correct answer?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody explain why option d is correct answer?

Did you notice that everybody says that it's not correct ?
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.
Some members suggested some points about it like A body-content of tagdependent might well be implemented as a SimpleTag
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A body-content of tagdependent might well be implemented as a SimpleTag

Do you agree ?
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Christophe
I am not agree because when tagdependent is defined in body-content then body content is treated as plain text even no EL expression is evaluated.
Thanks Christophe for clarification.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic