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

Help!Doubt on SimpleTagSupport

 
John Bryant
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I met with the following question in a book:
Assume the tag handler for a ex:sim tag extends SimpleTagSupport. In what way can scriptlet code be used in the body of ex:sim?
A. Scriptlet is illegal in the body of ex:sim.
B. set the body-content to JSP in the body of the TLD.
The key given by the book is A. But I think the correct key is B. Please give your answers and explainations. Thanks a lot in advance!!!
[ March 13, 2008: Message edited by: Java ILoveYou ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Java ILoveYou",
Hi, welcome to the ranch. You may not be aware of the ranch's Naming Policy, so please read it and change your name accordingly (obviously fake names are not allowed). Thank you.
 
Shruthi Karthick
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We cant use scriptlet in the body of the Simple Tag.
<body-content> tag of the TLD can only have values of empty or scriptless.
Option "A" is correct.

[ March 14, 2008: Message edited by: Shruthi Karthick ]
[ March 14, 2008: Message edited by: Shruthi Karthick ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic