This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Help!Doubt on SimpleTagSupport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Help!Doubt on SimpleTagSupport" Watch "Help!Doubt on SimpleTagSupport" New topic
Author

Help!Doubt on SimpleTagSupport

John Bryant
Greenhorn

Joined: Dec 21, 2007
Posts: 2
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

"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.


[My Blog]
All roads lead to JavaRanch
Shruthi Karthick
Ranch Hand

Joined: Mar 12, 2008
Posts: 45
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 ]

Shruthi Karthick<br />SCJP - 93%<br />SCWCD - 89%
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Help!Doubt on SimpleTagSupport
 
It's not a secret anymore!