This is in Tapestry 4, right?
To send the client to a different URL you can throw a RedirectException instead:

void redirectToNextPage()
{
  IEngineService pageService = getPageService();
  String pageName = "NextTapestryPage";
  ILink link = pageService.getLink(false, pageName);
  throw new RedirectException(link.getAbsoluteURL());
}

You also need to inject the page service in your page/component class:

@InjectObject("engine-service:page")
public abstract IEngineService getPageService();


On Wed, 22 Sep 2010 12:00:10 +0200, asianCoolz <second_co...@yahoo.com> wrote:

with throw new PageRedirectException("NextTapestryPage"); , i was redicectd to another page, but the url on the browser address bar is not change. is there
any method i can call "forward", so that use 'forward' to another page

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

Reply via email to