> If you pass the response object to your class's method as an argument,
> you can call sendRedirect() from there just as easily as you can from
> the servlet class.

Sure, but after your utility method returns the servlet is going to
try to generate additional output.  That's not allowed after a
sendRedirect().

> None of this has enough value for me to even consider using a
> non-stack-based language :-).

Me either.  :-)

Hans Bergsten wrote:
>
> Actually in JSP 1.1 you can do this with custom tags (added in the
> PR1 version of the spec). A tag can return a value from the doEndTag
> method that tells the JSP engine to flush the stream and return. It's
> all hidden from the user of the custom tag.

Hmm... interesting.  I think we have our answer.

-jh-

--
Jason Hunter
[EMAIL PROTECTED]
Book:    http://www.servlets.com/book
Article: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html

===========================================================================
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