• 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: 434
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic