It basically works when I do the following. try { response.sendRedirect("../Error"); } catch (IOException e1) { e1.printStackTrace(); }
But this is quite dirty. In the above snippet I can show the error page. But I need to set an error message to the error page. This makes me manually do url encoding. I expect the framework to do all that for me. I would expect to be able to do something like the following: @InjectPage private Error errorPage; @SetupRender private Object loadDetails(){ .... //id not found errorPage.setErrorMessage("No valid id " + id); return errorPage; } Massimo Lusetti wrote: > > On 2/20/07, bueggers <[EMAIL PROTECTED]> wrote: > >> But where to do the redirection to an error page in Tap 5? >> The onActivate method detects the error but how to display other page >> then? > > Isn't as simple as injecting infrastructure:Response and then use > sendRedirect ? > > -- > Massimo > http://meridio.blogspot.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Tap-5-redirect-after-onActivate-tf3260344.html#a9076144 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]