You should contribute to a Dispatcher. Search the mailing list archive or wiki.

29.11.2009, в 11:22, Pierre DEVREUX <melboui...@yahoo.fr> написал(а):


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 with it.



Ashwanth Kumar wrote:

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





--
View this message in context: 
http://old.nabble.com/Redirect-to-401-page.-tp26560171p26560487.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

Reply via email to