See intermix. In general, the answers should have been in the javadocs
but they seem not to be there. In general the intention is that some
details are in javadoc and not in the spec itself.
> Date: Sat, 13 Nov 1999 18:00:19 +0100
> From: Volker Turau <[EMAIL PROTECTED]>
> Subject: Six questions on Tag Extensions (PR2)
>
> 1. What is the return value of the methods doStartTag(), doEndTag()
> respectively doAfterBody() in the support classes TagSupport and
> BodyTagSupport?
>From TagSupport:
doStartTag()
- SKIP_BODY
doEndTag()
- EVAL_PAGE
doAfterBody()
- does not apply
>From BodyTagSupport:
doStartTag()
- EVAL_BODY_TAG
doEndTag()
- EVAL_PAGE
doAfterBody()
- SKIP_BODY
> 2. How do the implementations of doEndTag() differ in the classes
> TagSupport and BodyTagSupport?
None; BodyTagSupport.doEnd() just does a super.doEnd().
> 3. Is it possible to use the method getPreviousOut() of class
> BodyTagSupport in the implementation of the methods doStartTag() or
> doEndTag() in subclasses of BodyTagSupport? Or can these methods
> only use pageContext.getOut()?
Yes, you can.
> 4. Why does the method doInitBody() in class BodyTagSupport not
> include the clause throws JspError?
That was a bug in PR2. We fixed it. Now all methods say "throws
JspException" and
JspError has been renamed JspTagException (things called "Error" should
be real "errors").
> 5. What happend to the method public PageContext getPageContext() in
> class Tag? Why was it deleted?
It is now a protected field. Seemed safer. Do you have an actual use
for it? We cannot change this in JSP 1.1 (too late), but I'm starting to
collect comments for JSP 1.next
> 6. What happened to the method public java.lang.String getTagName() in
> class Tag? Why was it deleted?
When we moved to a JavaBeans-based model, we reviewed all properties.
This one seemed to have few uses and it would have forced every tag
handler to have this value initialized by the JSP container. We decided
to remove it and wait.
In the few uses of getTagName() that I was aware of, it was used for
error reporting. This seems something best done by a different
mechanism, rather than forcing the initialization cost on every single
tag handler instance. We followed the "do no harm" approach.
> volker turau
> FH Wiesbaden Fachbereich Informatik
> Tel.: +49-611-9495-205 FAX +49-611-9495-210
> http://www.informatik.fh-wiesbaden.de/~turau
Thanks for the feedback. I'll try to fix the javadoc for final.
- eduard/o
===========================================================================
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