Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/305.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在tapestry4中使用PageEvent发送重定向到另一个页面_Java_Tapestry - Fatal编程技术网

Java 如何在tapestry4中使用PageEvent发送重定向到另一个页面

Java 如何在tapestry4中使用PageEvent发送重定向到另一个页面,java,tapestry,Java,Tapestry,对于外部站点,请使用: public void pageValidate(PageEvent event) { //how to use pageEvent to sendRedirect to google.com ? 要重定向到包含应用程序的页面,请使用: throw new RedirectException("http://google.com") throw new PageRedirectException("page");

对于外部站点,请使用:

public void pageValidate(PageEvent event) {
        //how to use pageEvent to sendRedirect to google.com ?
要重定向到包含应用程序的页面,请使用:

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