• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt regarding the body cotent of simple Tags

 
Somesh Rathi
Ranch Hand
Posts: 31
Eclipse IDE Hibernate Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read in Hanwant Deshmukh SCWCD book that " a SimpleTag's body must not contain scripts - no declarations, expressions, or scriplets. Hence for SimpleTAgs's body , you cant set the <body-content> as JSP ..

My question why is this restriction in SimpleTag while we can use the same in custom Tag ?

Many Thanks in advance !
Regards,
Somesh
 
Sandeep Bhandari
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
because SimpleTag came after ClassicTag and hence is better in terms of avoiding scriptlets.......
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic