"De Bakker, Bjorn" <[email protected]> wrote on 08/01/2009 
11:57:17:

> Yes, I also think this is a WL issue, but I'm asking this here 
> because there are more Tiles users on this list :-).  What do you 
> exactly mean by by special procedure rendering JSP pages?

Oh, just a kind of template class I use everywhere a SocketExceptionCan be 
thrown. Sth like:

public abstract class IoExceptionSafeOperation {

        private static Logger s_logger = LoggerFactory.getLogger
(IoExceptionSafeOperation.class);
 
        public final Object executeWithIOExceptionHandling() {
 
                try {
                        return doWithIOException();
                } catch (SocketException e) {
                        s_logger.warn("A SocketException has been thrown, 
likely a user pressing the STOP button in a browser: "+e.getMessage());
                } catch (IOException e) {
                        s_logger.error("Error while writing to a servlet 
response.", e);
                }
 
                return null;
        }
 
        protected abstract Object doWithIOException() throws IOException;
}

It is helpful anyway, as I don't have to wonder how to handle the 
IOException...

HTH,
Pawel

Reply via email to