I am currently developing an app that has a login, after the person logs in I want to remove the login page from history so that if they choose the back button (after login) it wont go back to the login page, but the one before it.

In javascript the code is `location.replace('whatever_url_you_are_forwarding_to');` I want to know the equivalent in Java / JSF