tried the redirect in just java