Pierre,

Wouldn't it as simple as this?

Ur Page Code:

@InjectPage
private Page401 user_err;

..........

Object check_user() {
 if(not authenticated) {
  return user_err;
 } else {
  // continue processing the page, or just return null
 }
}

........

HTH
Ashwanth Kumar


On Sun, Nov 29, 2009 at 2:09 PM, Pierre DEVREUX <melboui...@yahoo.fr> wrote:

>
> Hi as I've not found post dealing with my problem, I expose to you my
> problem.
> I have set my own contribution for PageRenderAccessHandler.
> Before a page is displayed, I check in handle method, if user is
> authenticated (call to my business layer).
>
> If not, I would redirect user to page 401 (Unauthorized page), I won't
> redirect to my own page 401, but to the one served by Tomcat.
>
> How can I manage this ?
>
> Thanks for you replies.
>
> Pierre.
> --
> View this message in context:
> http://old.nabble.com/Redirect-to-401-page.-tp26560171p26560171.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
>
>

Reply via email to