I have some questions, mostly in regards to JSP tag extensions, that I
hope someone can answer:

1 - What is the difference between JspException and JspError?
JspException is described as "A generic exception known to the JSP
engine" while JspError indicates that it will cause the error page to be
displayed. But the error page will be displayed when ANY exception is
thrown so why is JspError necessary.

2 - On a related note, why is it that Tag.doStartTag() and
Tag.doEndTag() may throw JspException but BodyTag.doInitBody() and
BodyTag.doAfterBody() may only throw JspError?

3 - Why is it that tag handlers that implement BodyTag must return
EVAL_BODY_TAG from doStartTag() while those that don't implement BodyTag
must return EVAL_BODY_INCLUDE? Isn't the fact that the tag handler
implements BodyTag enough to indicate to the JSP engine that the
EVAL_BODY_TAG semantics must be used?

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to