hi, maybe you can do this in onActivate,
String onActivate() { // check login if not redirect return "login"; } but a better approach is, using Dispatcher, you can find some good articles in the Tapestry5's wiki pages. Angelo, txhdeve wrote: > > I made a layout component for my application.In this layout I want to > implement this function that to check whether user login the system,if > not,then redirect the login page.How to finish it. I try to do this in > @BeginRender,but this method only return the booean or void .How can I > redirect other pages? > > > -- View this message in context: http://www.nabble.com/How-to-redirect-in-component-tp16532137p16532602.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]