how to use PageEvent in tapestry4 to sendRedirect to another page

ⅰ亾dé卋堺 提交于 2019-12-12 02:13:29

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!