I forgot to indicate that I'm using Picasso (4.0). One possible way of doing it, based on your solution is: throw new RedirectException(getPageService().getLink(cycle, "affiliate/Home").getAbsoluteURL());
where your page is abstract and define the following abstract method: public abstract IEngineService getPageService(); and your page definition contains: <inject property="pageService" object="engine-service:page"/> Thanks for your help, Jérôme. On 4/15/05, Paul Ferraro <[EMAIL PROTECTED]> wrote: > The RedirectException() will forward (i.e. server-side) the request if a > relative uri is specified. If the uri specified is absolute then it > will perform a redirect (as in #2). > When I need to redirect to a page, I perform the following: > throw new > RedirectException(cycle.getEngine().getService(Tapestry.PAGE_SERVICE).getLink(cycle, > cycle.getPage(), new String[] { "MyPageName" }).getURL()); > > Paul > > Jérôme BERNARD wrote: > > >Hi, > > > >Why do the two lines below differ? > >1) throw new RedirectException("affiliate/Home.html"); > >2) > >cycle.getRequestContext().getResponse().sendRedirect("affiliate/Home.html"); > > > >My app starts with Home.html (not affiliate/Home.html !!). When using > >1), my app is redirected to Home.direct, whereas case 2) redirects me > >to the proper page (affiliate/Home.html). I don't understand why... > > > >Jérôme. > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]