Hi Pierre, Basically you need to use: org.apache.tapestry5.services.Response; which shadows the methods of HttpServletResponse.
response.sendError(HttpServletResponse.SC_FORBIDDEN, "You do not have permission to access this resource"); return true; // this is also important If you want to customize some of these error pages, you can in your web.xml... there are some posts in this list on how to do so. Kind regards, Peter -- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. ----- Original Message ----- From: "Pierre DEVREUX" <melboui...@yahoo.fr> To: users@tapestry.apache.org Sent: Sunday, 29 November, 2009 18:07:43 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Redirect to 401 page. The problem is I check user authorization in my implementation of PageRenderAccessFilter. And the Dispatcher is called before in cycle life. Then when dispatch method is called, check controls are not yet done. -- View this message in context: http://old.nabble.com/Redirect-to-401-page.-tp26560171p26563306.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org