s, 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 messa
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.-tp26560
You should contribute to a Dispatcher. Search the mailing list archive
or wiki.
29.11.2009, в 11:22, Pierre DEVREUX написал(а):
Hi Ashwanth,
thanks to reply so quickly
In your reply, you define your own page Page_401.
But what I would to do is that Tapestry gives back control to Tomcat
t
Hi Ashwanth,
thanks to reply so quickly
In your reply, you define your own page Page_401.
But what I would to do is that Tapestry gives back control to Tomcat to
display such error page.
In my mind, something like set in an HTTPResponse a status code 401, and
that Tapestry lets Tomcat deals wi
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