Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question on tag files:

 
Jingh Yi
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My view.jsp code that includes a tag file:

My tag file footer.tag:


My question:
How come the view.jsp shows '${subTitle}' instead of 'haha'?

Thanks!
Jenny
 
Osama Hasan
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jenny!
Try adding the following directive in your tag file:

<%@tag isELIgnored="false" %>
 
Leandro Melo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you placed footer.tag under WEB-INF/tags?
 
Jingh Yi
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Osama, you are so cool! it worked after I added that directive! Many thanks!

Melo, I did put it in /WEB-INF/tags.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic