• 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

Is it legal to embed scriptlets inside custom tag body

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it legal to embed scriptlets inside Custom tag body, i mean to say setting <body-content> tag in taglib to JSP.

Thank you
Mike
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Yes it is legal. The rule is:
You can set <body-content> to JSP only for the classic custom tags (which implement the Tag interface) and then You can use scriptlet in the body of the tag.

!But You can not set <body-content> to JSP for custom tags which implement the SimpleTag interface and for tag files. For these tags, the legal options are: empty, tagdependent, scriptless.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mike lothar:
Is it legal to embed scriptlets inside Custom tag body, i mean to say setting <body-content> tag in taglib to JSP.

Thank you
Mike



Hi,
Check this out

https://coderanch.com/t/168570/java-Web-Component-SCWCD/certification/JSP-valid-value-body-content

Abhi.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic