• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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.
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic