sendRedirect to another domain not working in Appfuse application

1.1k views Asked by At

I have created a new Appfuse 2.1.0 struts2 application and from the servlet i want to redirect to https://gmail.com, i have used the following code:
response.sendRedirect("https://gmail.com");

But this line was not working, my application was not redirecting to this domain which i have specified. Do i need to do any configurations to redirect to another domain from my appfuse application?

1

There are 1 answers

1
Shekhar Khairnar On

You need to give Url like:

  response.sendRedirect("https:www.gmail.com");