Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SimpleTag default body-content

 
Anitha Srinivasan
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.What is the default value of the body-content attribute for a custom tag implementing the SimpleTag interface?select one.

A.JSP
B.scriptless
C.tagdependent
D.empty
E.depending upon the implementation
F.none of the above

The answer shows E but is it not B?


2. And one more question whats the default body-content value for classic tag?

Thanks,
Anitha
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For both classic tags and simple tags, there's no default value.
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how is that?I thought for classic tags its JSP and Simple tags its scriptless?
 
Pallavi Roy
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Renuka,

The default value for classic tags is scriptless.(sure)
I think it is the same for simple tags as well.

Best Regards,
Pallavi
[ December 05, 2006: Message edited by: Pallavi Roy ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please all, tell why you think it is scriptless before throwing my answer in the bin

From the specification:
body-content:
Specifies the format for the body of this tag.
The default in JSP 1.2 was "JSP" but because this
is an invalid setting for simple tag handlers, there
is no longer a default in JSP 2.0. A reasonable
default for simple tag handlers is "scriptless" if
the tag can have a body.
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
version specific questions like this wont be there on exam right?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've got to know how it works for 2.0 only.
 
Anitha Srinivasan
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So is it depends upon the implementation for both the simple and classic tags?
what about tag directive body-content element , here the default value says scriptless in HFSJ. can anyone confirm the ans.

Thanks,
Anitha
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, default is scriptless for the tag directive in Tag Files.
 
Bryan Basham
author
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Renu Radhika:
version specific questions like this wont be there on exam right?


Yes, Renu, this will not be on the exam. That is to say that you will not be tested on the "default value of the body-content TLD element."

-Bryan
 
Renu Radhika
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was a relieving reply Bryan. When I saw this answer, I felt I should think twice before taking the exam, as there may be a lot of modifications like this, which I won�t be aware of.
 
Pawanpreet Singh
Ranch Hand
Posts: 264
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could any body answer my question.

Is there any question on Tag interface hierarchy for Custom Tags does come in real exam of SCWCD.

--------
Pawan
SCJP 1.5 (81%)
---------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic