On Wed, 05 Jan 2011 06:16:43 -0200, Ronald Luke <ronald.l...@ymail.com> wrote:

Hello, guys,

Hi!

Now I'm looking at the wonderful T5 hotel-booking-demo(using tynamo's
tapestry-security) code. If a visitor is not logged in , when she goes to the search page, she will be redirected to the signin page. Looking at the Search.java, I don't understand how it works. Here's the code http://ja.gs/Ce. I don't see any service injected which can check if user logs in and redirect.

Complementing Taha's answer: that's the beauty of its implementation and also of Tapestry: it is implemented as a RequestFilter, so you don't need any code in your pages to have them secured. The login redirection logic is implemented in a single place and invoked for each page.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to