Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with tagfile

 
MInu
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

plz look at this code

TestHeader.jsp
---------------
<%@ taglib prefix="my" tagdir="/WEB-INF/tags"%>
<html>
<my:Header attr="test"/>
<body>

Header.tag (placed inside WEB-INF/tags)
----------

<@ attribute name="attr" required="true" rtexprvalue="true" %>
This is header file


while running TestHeader.jsp i got this error

org.apache.jasper.JasperException: /TestHeader.jsp(3,0) Attribute attr invalid for tag Header according to TLD

plz help me to solve this?

Thanks
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You missed the % in the following statement

<%@ attribute name="attr" required="true" rtexprvalue="true" %>
This is header file


Thanks
 
MInu
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic