Redirect action to another Url

We want to redirect a action to another website or url.
for that syntax is used

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




redirect action
redirect action

redirect result