• 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
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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.
 
Grow a forest with seedballs and this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic