Fionn Behrens wrote:
> On Tue, 19 Mar 2002 01:08:17 -0500
> "Edmund Lian" <[EMAIL PROTECTED]> wrote:
> 
> > What's the best way to stop a servlet from processing 
> anything more (i.e.,
> > go to sleep), and also redirect the client browser to 
> another page? I know
> > the latter is .sendRedirect(), but there doesn't seem to be anything
> > analogous to say, an .abort() method.
> 
> return
> 

Except that that only exits one function.  If you're nested in multiple
levels of function calls, it won't work the way you want it to.

I think an "abort" method (not sure about the name) would be a great idea.
It could raise an exception that would be caught at some higher level.  I
don't know what the proper level would be though.  Maybe at the
Servlet.respond() level?

This seems to go along with browser Cancel detection.  Seems like that
should also raise an exception that stops the whole transaction.

- Geoff

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to