• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scripting Elements in Simple Tag

 
Imran Vohra
Ranch Hand
Posts: 77
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I have undersood is you cant put scripting elements in the body part of Simple Tag
lets say Simple is SimpleTag and Classic is ClassicTag
then you cant write
<a:Simple>
<% i=i++ %>
</a:Simple>

but I am confused about the below code where Classic Tag is child Tag of Simple Tag. and (I hope that)Classic Tag can have scripting elements in their body part.

<a:Simple>
<a:Classic>
<% i=i++ %>
</a:Classic>
</a:Simple>

Please tell me is it correct or I am missing something.

Thanks
Imran
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

Okay for Simple tags and Tag Files the following values are valid for body-content : scriptless, tagdependent and empty.

While for Classic Tags the valid values are : JSP,scriptless,empty and tagdependent. (So we can use scriptlets and expression in the classic tag's body when the body-content is specified to be JSP)

For tagfile the default is scriptless.
While for classic and simple tags there is no default body-content.

Rgds,
Shivani.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic