• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enthuware Q

 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a tag to accept any valid jsp code as its body, what should be the value of <body-content> for this tag's taglib descriptor?

What should be the answer?
 
Sandeep Bhandari
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
leave it blank or supply JSP
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do you know it is the Simple Tag or Classic tag ?
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tag's taglib descriptor will be written by the developer so he know whether it is Simple or Classic tag.

The answer would be JSP.
Sandeep - But how can it will be empty to accept all things inside JSP?
[ August 06, 2008: Message edited by: Chintu sirivennela ]
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Answer for this question is "Leave it blank"

For supplying JSP , it should be a Clssic Custom tag.

AS per Question , nothing has been explicitly said like Simple /classic tags.That is the reason , i have asked how do you find out from the question.

hi sandeep , can you please help ?
 
Sandeep Bhandari
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by deepa raj:
Answer for this question is "Leave it blank"

For supplying JSP , it should be a Clssic Custom tag.

AS per Question , nothing has been explicitly said like Simple /classic tags.That is the reason , i have asked how do you find out from the question.

hi sandeep , can you please help ?


yes you are right that the answer differs for classic and custom tags and since the question doesn't say that its a custom tag we can't be sure and that's way I said JSP/Leave Blank. Very few chances for it to be a real exam question but then we have to live with imperfections.
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
will the "Leaving Blank" the option assign defalut value for body-content right ??

How it will be the correct option.We need some more explanation on this option.

can somebody please help?
 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this, am not very much sure but it will clear your doubt by some degree.
BodyTagContent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic