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]
