• 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

Scripting Elements in Simple Tag

 
Ranch Hand
Posts: 77
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic