I would like for a given page to force a redirect to a different page before it's rendered if a given condition is met. I could use a simple Response.sendRedirect but that would mean i would have to provide the page name in string format. I would like to avoid having to do this because it would make code refactoring harder and more error prone.
So, any way i can redirect using page classes only ? Thanks.