Re: Redirect throws NullPointerException

2011-05-04 Thread Thiago H. de Paula Figueiredo
On Wed, 04 May 2011 13:29:20 -0300, Tim Koop wrote: @Inject private Response response; public void pageAttached() { try { response.sendRedirect("http://www.timkoop.com/";); } catch (IOException e) { System.out.println("redirection exce

Re: Redirect throws NullPointerException

2011-05-04 Thread Taha Hafeez
try response.disableCompression() before redirect. regards Taha On Wed, May 4, 2011 at 9:59 PM, Tim Koop wrote: > I'm trying to send a redirect, but I keep getting a NullPointerException > from somewhere in the depths of Tapestry. Firefox does actually redirect > correctly, but still I don'

Redirect throws NullPointerException

2011-05-04 Thread Tim Koop
I'm trying to send a redirect, but I keep getting a NullPointerException from somewhere in the depths of Tapestry. Firefox does actually redirect correctly, but still I don't like the exception being thrown. Anyone have any ideas? Thanks. The Java code in my page class looks like this: