I would try something like this: in B class... @PageAttached private void redirectToC() { // ... throw new RedirectException("..."); // URL for C }
You will need to create RedirectException. I believe there is something in the wiki on how to handle this exception in AppModule. Hope this helps. Benny On Thu, Sep 10, 2009 at 12:18 AM, Xuan Tran Le <lexuanttk...@gmail.com>wrote: > I'm developing a project in portlet mode and I have a problem with page > redirect: > - I have 3 pages named A, B, C. > - In page named A, I have a page link to page B, then I want B auto > redirect > to page C > > The problem is that in B class I don't know how to redirect to C. I try to > call > > ---------- B class ------------- > @InjectPage > private C c;//page C > > Object onActivate() { > return c; > } > > ------------------------------------ > > i don't know in B class which phase (which method) can redirect to other > page. > > I did try add a action link to B, then when A call B, in B I click to the > action link, then I have C. But I don't want to click page B again. I want > to click page A then it call to B and in B it auto redirect to C. >