Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Body content type for custom tags

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am referring to HFSJ 2nd edition pdf version.

In chapter 9 ,it says that body content of a custom tag can have either of the four values
1.empty 2.scriptless 3.tagdependent 4.jsp

But in chapter 10 ,while dealing with tag handlers for these custom tags , for a Simple tag handler ,the tag body is processed using the setJspBody(JspFragment) method.And it says that JspFragment cannot have scripting elements.

Does this imply ,that only tag bodies invoked by a Classic handler can have all 4 types of body content , and while with Simple handler only 3 types excluding jsp type as no scripting elements allowed.
 
Sheriff
Posts: 9671
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

tanzeel rais wrote:Does this imply ,that only tag bodies invoked by a Classic handler can have all 4 types of body content , and while with Simple handler only 3 types excluding jsp type as no scripting elements allowed.


Yes that's correct...
 
Did you miss me? Did you miss this tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic