• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A JSP Question

 
Andy Smith
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider the following entry in the web-application TLD and the JSP page snippet defined below. What will happen when the taglib has correctly been defined in the JSP page?


The correct answer is:
1. The ForwardTag will be executed as defined.
2. The TLD entry has not been correctly specified.
3. The JSP snippet is incorrect, compile time error.
4. The JSP snippet will ignore the body content.
5. None of the above



TLD:<tag>
<name>ForwardTag</name>
<tag-class>com.baboon.action.ForwardTag</tag-class>
<body-content>empty</body-content>
</tag>JSP page:
<myTagLib:ForwardTag>
<% String s = "Forwarding"; %>
</myTagLibForwardTag>


I answered 5. but the J2eeCertifications.com says its 3.
Is this a compile time error or translation time error???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic