• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help!Doubt on SimpleTagSupport

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic