问题
public void pageValidate(PageEvent event) {
//how to use pageEvent to sendRedirect to google.com ?
回答1:
For an external site, use:
throw new RedirectException("http://google.com")
To redirect to a page withing the application use:
throw new PageRedirectException("page");
来源:https://stackoverflow.com/questions/1642889/how-to-use-pageevent-in-tapestry4-to-sendredirect-to-another-page