Re: T5: 404 http error

2007-12-28 Thread Sven Homburg
done Howard Lewis Ship wrote: > > I think we need a new class, ErrorResponse, that can be returned as a > way to invoke response.sendError(). The StreamResponse handler wants > to send a stream of content, which causes problems because after > sendError() the response is committed (meaning you

Re: T5: 404 http error

2007-12-28 Thread Howard Lewis Ship
I think we need a new class, ErrorResponse, that can be returned as a way to invoke response.sendError(). The StreamResponse handler wants to send a stream of content, which causes problems because after sendError() the response is committed (meaning you can't legally obtain an output stream or pr

Re: T5: 404 http error

2007-12-26 Thread Sven Homburg
i think its not your or a tapestry problem. jetty gives tapestry a closed http connection if you set a response error i dont know, if this a special jetty behavior. i think it should cool, if howard consider this behavior in StreamResponseResultProcessor.processComponentEvent osamuo wrote: >

Re: T5: 404 http error

2007-12-26 Thread Sven Homburg
not possible since 5.0.7 signature of ComponentEventResultProcessor was changed Yoshikazu Kuramochi wrote: > > I am doing as follows. > > > public class ErrorResponse { > > private int _statusCode; > private String _message; > > public Err

Re: T5: 404 http error

2007-12-26 Thread Yoshikazu Kuramochi
I am doing as follows. public class ErrorResponse { private int _statusCode; private String _message; public ErrorResponse(int statusCode, String message) { super(); _statusCode = statusCode; _message = message; }

Re: T5: 404 http error

2007-12-26 Thread osamuo
Thank you for your advice. But I still get an exception. Sven Homburg wrote: > > i have never tested it, its only an idea: > > Test.java: > > public class Test{ > @Inject > private Response response; > > StreamResponse onActivate( Object[] parameter

Re: T5: 404 http error

2007-12-26 Thread Sven Homburg
i have never tested it, its only an idea: Test.java: public class Test{ @Inject private Response response; StreamResponse onActivate( Object[] parameters ) throws IOException{ TextStreamResponse textStream = null; if( parameters == null ||

T5: 404 http error

2007-12-25 Thread osamuo
Hi, How can I tell T5 to send an 404 error? Is the following code right way to show 404 error page on T5? Because I got an error after calling "sendError()" in the code. Test.java: public class Test{ @Inject private Response response; void onActivate