• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Custom tag

 
Chandraprabha Rajput
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question 1:
Consider the following JSP code:

<mylib:MyIterTag>
<%="Hello World"%>
</mylib:MyIterTag>

If the tag handler class for MyIterTag implements IterationTag and returns IterationTag.EVAL_BODY_BUFFERED from doStartTag(), what will be output in the response?

its answer is given that it willnot compile ..but if it extends TAgSupport the answer is given that it will compile file but produce runtime error .
Can any one expalin me why?

question is taken from Enthuware
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!