如何在tapestry4中使用PageEvent将sendRedirect发送到另一个页面

时间:2009-10-29 10:50:56

标签: java tapestry

public void pageValidate(PageEvent event) {
        //how to use pageEvent to sendRedirect to google.com ?

1 个答案:

答案 0 :(得分:1)

对于外部网站,请使用:

throw new RedirectException("http://google.com")

要重定向到应用程序内的页面,请使用:

throw new PageRedirectException("page");
相关问题