How to redirect a request to another URL in Struts
posted 6 years ago
I am developing an application(http://localhost:8080/tas/....). I have user registration page and on that page user will enter their information's. When the user will click on register button the page will redirect the page to a completely different url(like: www.google.com/myservices). So, here my application context starts with /tas and my request will be redirected to google with some post/get parameters. I am using Struts1.3.10 framework. In the jsp file I am using
<% String redirectURL = "www.google.com"; response.sendRedirect(redirectURL); %> but in the url it show (http://localhost:8080/www.google.com). Any help would be much appriciated.