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

Tag file quesion...

 
Kay Li
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


# Consider these files.

<%-- WEB-INF/tags/header.tag --%>
<h1>Hello ${name}!!</h1>

<%-- output.jsp --%>
<%@ taglib prefix="my" tagdir="/WEB-INF/tags" %>
<html>
<body>
<my:header name="Manoli"/>
</body>
</html>

Is the declaration and use of the JSP tag file valid? (1 correct answer)

1. Yes.
2. No.

Answer : No

I thought it should be Yes.

Can some one help?

Thanks

Kay
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please put your code between code tags.

Also, you need to declare the name attribute to the tag ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic