Created
September 6, 2011 15:29
-
-
Save Ramasubramanian/1197860 to your computer and use it in GitHub Desktop.
Frame bust redirect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void redirect(final HttpServletResponse response) throws IOException{ | |
String url = "http://abcde.com"; | |
String out = "<script type=\"text/javascript\">window.top.location=\"" + url+ "\"</script>"; | |
response.getWriter().print(out); | |
response.flushBuffer(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment