如何在tapestry4中使用PageEvent将sendRedirect发送到另一个页面
题
public void pageValidate(PageEvent event) {
//how to use pageEvent to sendRedirect to google.com ?
解决方案
对于外部网站,请使用:
throw new RedirectException("http://google.com")
要重定向到应用程序内的页面,请使用:
throw new PageRedirectException("page");
不隶属于 StackOverflow