Struts2 Redirect to External URL

We want to redirect the action to another website or URL.
for that syntax is used

type=”redirect” is used to redirect this action to the specified URL.
here URL is a variable in the action class with getter and setter methods.
We are getting the URL value from the JSP page to get the URL value in struts.xml we used ${url}.


Redirect To another Web site