*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes question on tag files: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "question on tag files:" Watch "question on tag files:" New topic
Author

question on tag files:

Jingh Yi
Ranch Hand

Joined: Mar 23, 2005
Posts: 90
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

Joined: Sep 30, 2002
Posts: 53
Hi Jenny!
Try adding the following directive in your tag file:

<%@tag isELIgnored="false" %>


SCJP 1.4<br />SCWCD 1.4
Leandro Melo
Ranch Hand

Joined: Mar 27, 2004
Posts: 401
Are you sure you placed footer.tag under WEB-INF/tags?


Leandro Melo
SCJP 1.4, SCWCD 1.4
Jingh Yi
Ranch Hand

Joined: Mar 23, 2005
Posts: 90
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.
 
subject: question on tag files:
 
Similar Threads
Custom Tags Page 496 HFSJ Question
The attribute directive in tag files.
Tag file attribute not evaluated
JSTL Tag File Attribute problem
Expression Language is not working in Jsp Tags