• Post Reply Bookmark Topic Watch Topic
  • New Topic

tagfiles and scriptlets

 
amarkirt saroay
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there is a tagfile Header.tag:

1)Can the content of this file contain jsp content like scriplets?
2)Is the jsp which calls this tag by say:

<my:Header>
<%= username%>
</my:Header>


correct?
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Amarkirt. Tag files and simple tags are added to jsp2.0 specification. Tag files internally use SimpleTag handlers,(doTag()). For simple tag handlers we don't specify scriptlets.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!