• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Tag file quesion...

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please put your code between code tags.

Also, you need to declare the name attribute to the tag ...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic