cometta
cometta

Reputation: 35689

how to use PageEvent in tapestry4 to sendRedirect to another page

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

Upvotes: 0

Views: 401

Answers (1)

Brian Deterling
Brian Deterling

Reputation: 13724

For an external site, use:

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

To redirect to a page withing the application use:

throw new PageRedirectException("page");

Upvotes: 1

Related Questions