@v1101
Is your oob 302 redirect working? If that is working, you might want to check the logs if there are any errors for the custom servlet and try putting a debugger in your servlet to see if redirectType is getting resolved at this line: if (redirectType.equals("301")) {