aspose file tools
The moose likes JSP and the fly likes JSP Custom tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "JSP Custom tag" Watch "JSP Custom tag" New topic
Author

JSP Custom tag

Chandraprabha Rajput
Ranch Hand

Joined: Apr 01, 2003
Posts: 37
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP Custom tag
 
Similar Threads
doubt when compiler error and when exception generate in these questions
Complile time OR Request time error
Most Most Confusing Question
valid return value of doStartTag()??
Classic Tag's